From 4e17dbb434908add3ed52a1129d0442fb2a9d9df Mon Sep 17 00:00:00 2001 From: pkuLmq <1900011062@pku.edu.cn> Date: Tue, 20 Aug 2024 22:26:36 +0800 Subject: [PATCH] debug for test 5 --- test/aachenBomb_2D/Allrun | 2 +- test/aachenBomb_2D/system/controlDict | 2 +- test/corrtest.cpp | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/aachenBomb_2D/Allrun b/test/aachenBomb_2D/Allrun index 036b855e..6175d137 100755 --- a/test/aachenBomb_2D/Allrun +++ b/test/aachenBomb_2D/Allrun @@ -8,7 +8,7 @@ application=dfLowMachFoam runApplication blockMesh runApplication decomposePar -runApplication mpirun -np 2 --allow-run-as-root $application -parallel +runApplication $application runApplication reconstructPar runApplication postProcess -func sample diff --git a/test/aachenBomb_2D/system/controlDict b/test/aachenBomb_2D/system/controlDict index 3a851947..0335b5ed 100644 --- a/test/aachenBomb_2D/system/controlDict +++ b/test/aachenBomb_2D/system/controlDict @@ -46,7 +46,7 @@ timeFormat general; timePrecision 6; -adjustTimeStep yes; +adjustTimeStep no; maxCo 0.1; diff --git a/test/corrtest.cpp b/test/corrtest.cpp index 49f13508..1b65f35f 100644 --- a/test/corrtest.cpp +++ b/test/corrtest.cpp @@ -40,8 +40,8 @@ using namespace std; float readBomb(int k, string file); float aachenBomb1 = readBomb(158,"aachenBomb2D/data_T.xy"); float aachenBomb2 = readBomb(168,"aachenBomb2D/data_T.xy"); -float aachenBomb3 = readBomb(172,"aachenBomb2D/data_T.xy"); -float aachenBomb4 = readBomb(194,"aachenBomb2D/data_T.xy"); +float aachenBomb3 = readBomb(174,"aachenBomb2D/data_T.xy"); +float aachenBomb4 = readBomb(192,"aachenBomb2D/data_T.xy"); // TEST(corrtest,dfHighSpeedFoam){ @@ -71,10 +71,10 @@ float aachenBomb4 = readBomb(194,"aachenBomb2D/data_T.xy"); // } TEST(corrtest,dfLowMachFoam_2DaachenBomb){ - EXPECT_NEAR(aachenBomb1,814.228,0.0001); - EXPECT_NEAR(aachenBomb2,2145.99,0.0001); - EXPECT_NEAR(aachenBomb3,939.509,0.0001); - EXPECT_NEAR(aachenBomb4,2475.45,0.0001); + EXPECT_NEAR(aachenBomb1,809.095,0.0001); + EXPECT_NEAR(aachenBomb2,1770.21,0.0001); + EXPECT_NEAR(aachenBomb3,917.437,0.0001); + EXPECT_NEAR(aachenBomb4,2474.36,0.0001); } float readmaxTH2(){