diff --git a/examples/dfHighSpeedFoam/oneD_detonationH2/Allrun b/examples/dfHighSpeedFoam/oneD_detonationH2/Allrun index b471fbfeb..c39982ff3 100755 --- a/examples/dfHighSpeedFoam/oneD_detonationH2/Allrun +++ b/examples/dfHighSpeedFoam/oneD_detonationH2/Allrun @@ -10,4 +10,4 @@ cp -r 0_orig/ 0/ runApplication blockMesh runApplication setFields runApplication decomposePar -runApplication mpirun -np 8 $application -parallel +runApplication mpirun --oversubscribe -np 8 $application -parallel diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 35b105be9..b68207e01 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -14,7 +14,7 @@ FetchContent_MakeAvailable(googletest) file(COPY ./pytorchIntegrator/postProcessing/probes/0/T DESTINATION 0DH2) -#file(COPY ./oneD_detonationH2/postProcessing/minMax/0/fieldMinMax.dat DESTINATION 1Ddetonation) +file(COPY ./oneD_detonationH2/postProcessing/minMax/0/fieldMinMax.dat DESTINATION 1Ddetonation) file(COPY ./dfLowMachFoam/twoD_reactingTGV/H2/cvodeSolver/postProcessing/sample/0.0005/data_T.xy DESTINATION 2DTGV/5) file(COPY ./dfLowMachFoam/twoD_reactingTGV/H2/cvodeSolver/postProcessing/sample/0.0004/data_T.xy DESTINATION 2DTGV/4) file(COPY ./dfLowMachFoam/twoD_reactingTGV/H2/cvodeSolver/postProcessing/sample/0.0003/data_T.xy DESTINATION 2DTGV/3) diff --git a/test/corrtest.cpp b/test/corrtest.cpp index 3bb325793..c8dd47cc9 100644 --- a/test/corrtest.cpp +++ b/test/corrtest.cpp @@ -10,8 +10,8 @@ float readmidTH2(); float readmaxTH2(); float readTGV(int k, string file); -//float readHighSpeed(); -//float v = readHighSpeed(); +float readHighSpeed(); +float v = readHighSpeed(); float H2maxT = readmaxTH2(); float H2midT = readmidTH2(); @@ -51,9 +51,9 @@ TEST(corrtest,df0DFoam_H2){ -//TEST(corrtest,dfHighSpeedFoam){ -// EXPECT_NEAR(v,1979.33,19.79); // within 1% of the theroetical value -//} +TEST(corrtest,dfHighSpeedFoam){ + EXPECT_NEAR(v,1979.33,19.79); // within 1% of the theroetical value +} TEST(corrtest,dfLowMachFoam_TGV){ EXPECT_FLOAT_EQ(TGV500,1532.92); // compare the maximum temperature along y direction in 2D TGV after 500 time steps diff --git a/test/oneD_detonationH2 b/test/oneD_detonationH2 new file mode 120000 index 000000000..8e03991d9 --- /dev/null +++ b/test/oneD_detonationH2 @@ -0,0 +1 @@ +../examples/dfHighSpeedFoam/oneD_detonationH2/ \ No newline at end of file