fixing unit tests
This commit is contained in:
parent
3990db0b79
commit
0d528a465c
@ -10,6 +10,7 @@ Color {
|
|||||||
pBC = 0
|
pBC = 0
|
||||||
din = 1.0
|
din = 1.0
|
||||||
dout = 1.0
|
dout = 1.0
|
||||||
|
flux = 1.0e-3
|
||||||
timestepMax = 200
|
timestepMax = 200
|
||||||
interval = 1000
|
interval = 1000
|
||||||
tol = 1e-5;
|
tol = 1e-5;
|
||||||
|
@ -52,8 +52,7 @@ ADD_LBPM_TEST( TestPoiseuille ../example/Piston/poiseuille.db)
|
|||||||
ADD_LBPM_TEST( TestForceMoments ../example/Piston/input.db)
|
ADD_LBPM_TEST( TestForceMoments ../example/Piston/input.db)
|
||||||
ADD_LBPM_TEST( TestForceD3Q19 )
|
ADD_LBPM_TEST( TestForceD3Q19 )
|
||||||
ADD_LBPM_TEST( TestMomentsD3Q19 )
|
ADD_LBPM_TEST( TestMomentsD3Q19 )
|
||||||
|
ADD_LBPM_TEST( TestInterfaceSpeed ../example/Bubble/input.db)
|
||||||
ADD_LBPM_TEST( TestInterfaceSpeed ../example/Piston/input.db)
|
|
||||||
ADD_LBPM_TEST( TestSphereCurvature )
|
ADD_LBPM_TEST( TestSphereCurvature )
|
||||||
#ADD_LBPM_TEST_1_2_4( TestTwoPhase )
|
#ADD_LBPM_TEST_1_2_4( TestTwoPhase )
|
||||||
ADD_LBPM_TEST_1_2_4( TestBlobIdentify )
|
ADD_LBPM_TEST_1_2_4( TestBlobIdentify )
|
||||||
|
@ -38,7 +38,9 @@ int main (int argc, char *argv[])
|
|||||||
|
|
||||||
std::shared_ptr<Domain> Dm(new Domain(domain_db,comm));
|
std::shared_ptr<Domain> Dm(new Domain(domain_db,comm));
|
||||||
|
|
||||||
for (i=0; i<Dm->Nx*Dm->Ny*Dm->Nz; i++) Dm->id[i] = 1;
|
Nx+=2; Ny+=2; Nz+=2;
|
||||||
|
|
||||||
|
for (i=0; i<Nx*Ny*Nz; i++) Dm->id[i] = 1;
|
||||||
|
|
||||||
Dm->CommInit();
|
Dm->CommInit();
|
||||||
|
|
||||||
@ -137,11 +139,11 @@ int main (int argc, char *argv[])
|
|||||||
toReturn = 5;
|
toReturn = 5;
|
||||||
printf("TestCylinderArea.cpp: error tolerance exceeded for common curve length \n");
|
printf("TestCylinderArea.cpp: error tolerance exceeded for common curve length \n");
|
||||||
}
|
}
|
||||||
if ( fabs(Averages->vawn_global(2)+0.2) > 0.01){
|
if ( fabs(Averages->vawn_global(2)+0.25) > 0.01){
|
||||||
printf("TestInterfaceSpeed: Error too high for kinematic velocity of wn interface \n");
|
printf("TestInterfaceSpeed: Error too high for kinematic velocity of wn interface \n");
|
||||||
toReturn = 6;
|
toReturn = 6;
|
||||||
}
|
}
|
||||||
if ( fabs(Averages->vawns_global(2)+0.2) > 0.01){
|
if ( fabs(Averages->vawns_global(2)+0.25) > 0.01){
|
||||||
printf("TestInterfaceSpeed: Error too high for kinematic velocity of common curve \n");
|
printf("TestInterfaceSpeed: Error too high for kinematic velocity of common curve \n");
|
||||||
toReturn = 7;
|
toReturn = 7;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user