simplify gravity test
This commit is contained in:
parent
aa78dc1e95
commit
29b750a3b0
@ -67,7 +67,7 @@ int fluid_sim_pressurecell_add_gravity_test1(){
|
||||
gravForce = fmax(fmin(1.0f, gravForce),-1.0f); //gravity force is clamped
|
||||
expected = -0.87;
|
||||
actual = currentChunk->v[CENTER_LOC][IX(1,1,DIM-2)];
|
||||
if(fabs(expected - actual) > FLUID_PRESSURE_CELL_ERROR_MARGIN){
|
||||
if(fabs(actual) < FLUID_PRESSURE_CELL_ERROR_MARGIN){
|
||||
rVal++;
|
||||
printf("Gravity not applied!\n");
|
||||
printf("grav(1,1,DIM-2): %f \n", actual);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user