25 bool acousticTestResult =
true;
27 int myRank = testComm.
Rank();
28 int numProc = testComm.
NProc();
30 const std::string testFunctionName(
"TestPlasCom2_AcousticPulsePeriodic2D");
31 const std::string testSuiteName(
"InviscidTests");
32 const std::string testCaseName(
"AcousticPulsePeriodic2D");
33 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
35 std::ostringstream compareStream;
36 double errorTolerance = 5e-14;
40 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
43 const char *argv[] = {
"plascom2x",
"-c",
"acousticPulse.config",NULL};
51 acousticTestResult =
false;
52 std::cout <<
"TestPlasCom2_AcousticPulsePeriodic2D: testing directory (" 53 << testDirectory <<
") did not exist. Aborting test." 66 std::cout <<
"Running PlasCom2..." << std::endl;
70 std::cout <<
"Done running PlasCom2." << std::endl;
75 std::cout <<
"TestPlasCom2_AcousticPulsePeriodic2D: PlasCom2 returned error code (" 76 << returnValue <<
"). Test failed." << std::endl;
77 acousticTestResult =
false;
85 std::cout <<
"TestPlasCom2_AcousticPulsePeriodic2D: PlasCom2 failed to " 86 <<
"produce expected output file (PlasCom2/PlasCom2_000001000.h5)." 87 <<
" Test failed." << std::endl;
88 acousticTestResult =
false;
94 std::cout <<
"Comparing results to expected result...";
96 "CM/flocm_acousticpulse_1000.h5",
97 errorTolerance,compareStream);
99 std::cout <<
"passed." << std::endl;
101 std::cout <<
"failed." << std::endl;
106 std::cout <<
"TestPlasCom2_AcousticPulsePeriodic2D: Resulting state " 107 <<
"comparison yielded negative result:" 109 << compareStream.str()
111 acousticTestResult =
false;
119 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:AcousticPulsePeriodic2D",
130 bool acousticTestResult =
true;
132 int myRank = testComm.
Rank();
133 int numProc = testComm.
NProc();
135 const std::string testFunctionName(
"TestPlasCom2_APRectilinearPeriodic2D");
136 const std::string testSuiteName(
"InviscidTests");
137 const std::string testCaseName(
"AcousticPulsePeriodic2D");
138 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
140 std::ostringstream compareStream;
141 double errorTolerance = 5e-14;
145 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
148 const char *argv[] = {
"plascom2x",
"-c",
"rectilinear.config",NULL};
156 acousticTestResult =
false;
157 std::cout << testFunctionName <<
": testing directory (" 158 << testDirectory <<
") did not exist. Aborting test." 172 std::cout <<
"Running PlasCom2..." << std::endl;
176 std::cout <<
"Done running PlasCom2." << std::endl;
181 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 182 << returnValue <<
"). Test failed." << std::endl;
183 acousticTestResult =
false;
191 std::cout << testFunctionName <<
": PlasCom2 failed to " 192 <<
"produce expected output file (PlasCom2/PlasCom2_000001000.h5)." 193 <<
" Test failed." << std::endl;
194 acousticTestResult =
false;
199 std::cout <<
"Comparing results to expected result...";
201 "CM/flocm_acousticpulse_1000.h5",
202 errorTolerance,compareStream);
204 std::cout <<
"passed." << std::endl;
206 std::cout <<
"failed." << std::endl;
210 std::cout << testFunctionName <<
": Resulting state " 211 <<
"comparison yielded negative result:" 213 << compareStream.str()
215 acousticTestResult =
false;
223 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:RectilinearPeriodic2D",
234 bool acousticTestResult =
true;
236 int myRank = testComm.
Rank();
237 int numProc = testComm.
NProc();
239 const std::string testFunctionName(
"TestPlasCom2_APCurvilinearPeriodic2D");
240 const std::string testSuiteName(
"InviscidTests");
241 const std::string testCaseName(
"AcousticPulsePeriodic2D");
242 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
244 std::ostringstream compareStream;
245 double errorTolerance = 5e-14;
249 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
253 const char *argv[] = {
"plascom2x",
"-c",
"curvilinear.config",NULL};
261 acousticTestResult =
false;
262 std::cout << testFunctionName <<
": testing directory (" 263 << testDirectory <<
") did not exist. Aborting test." 277 std::cout <<
"Running PlasCom2..." << std::endl;
281 std::cout <<
"Done running PlasCom2." << std::endl;
286 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 287 << returnValue <<
"). Test failed." << std::endl;
288 acousticTestResult =
false;
296 std::cout << testFunctionName <<
": PlasCom2 failed to " 297 <<
"produce expected output file (PlasCom2/PlasCom2_000001000.h5)." 298 <<
" Test failed." << std::endl;
299 acousticTestResult =
false;
304 std::cout <<
"Comparing results to expected result...";
306 "CM/flocm_acousticpulse_1000.h5",
307 errorTolerance,compareStream);
309 std::cout <<
"passed." << std::endl;
311 std::cout <<
"failed." << std::endl;
315 std::cout << testFunctionName <<
": Resulting state " 316 <<
"comparison yielded negative result:" 318 << compareStream.str()
320 acousticTestResult =
false;
328 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:CurvilinearPeriodic2D",
339 bool acousticTestResult =
true;
341 int myRank = testComm.
Rank();
342 int numProc = testComm.
NProc();
344 const std::string testFunctionName(
"TestPlasCom2_AcousticPulseFarfield2D");
345 const std::string testSuiteName(
"InviscidTests");
346 const std::string testCaseName(
"AcousticPulseFarfield2D");
347 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
349 std::ostringstream compareStream;
350 double errorTolerance = 5e-14;
354 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
357 const char *argv[] = {
"plascom2x",
"-c",
"acousticPulse.config",NULL};
364 acousticTestResult =
false;
365 std::cout << testFunctionName <<
": testing directory (" 366 << testDirectory <<
") did not exist. Aborting test." 382 std::cout <<
"Running PlasCom2..." << std::endl;
386 std::cout <<
"Done running PlasCom2." << std::endl;
389 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 390 << returnValue <<
"). Test failed." << std::endl;
391 acousticTestResult =
false;
399 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
400 <<
"output file (PlasCom2/PlasCom2_000001000.h5). Test failed." << std::endl;
401 acousticTestResult =
false;
405 if(testComm.
Rank() == 0){
406 std::cout <<
"Comparing results to expected....";
408 "CM/flocm_acousticpulse_1000.h5",
409 errorTolerance,compareStream);
410 std::cout << (returnValue == 0 ?
"passed." :
"failed.")
415 std::cout << testFunctionName <<
": Resulting state comparison " 416 <<
"yielded negative result:" 418 << compareStream.str()
420 acousticTestResult =
false;
427 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:AcousticPulseFarfield2D",
438 bool acousticTestResult =
true;
440 int myRank = testComm.
Rank();
441 int numProc = testComm.
NProc();
443 const std::string testFunctionName(
"TestPlasCom2_APRectilinearFarfield2D");
444 const std::string testSuiteName(
"InviscidTests");
445 const std::string testCaseName(
"AcousticPulseFarfield2D");
446 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
448 std::ostringstream compareStream;
449 double errorTolerance = 5e-14;
453 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
456 const char *argv[] = {
"plascom2x",
"-c",
"rectilinear.config",NULL};
463 acousticTestResult =
false;
464 std::cout << testFunctionName <<
": testing directory (" 465 << testDirectory <<
") did not exist. Aborting test." 481 std::cout <<
"Running PlasCom2..." << std::endl;
485 std::cout <<
"Done running PlasCom2." << std::endl;
488 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 489 << returnValue <<
"). Test failed." << std::endl;
490 acousticTestResult =
false;
498 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
499 <<
"output file (PlasCom2/PlasCom2_000001000.h5). Test failed." << std::endl;
500 acousticTestResult =
false;
504 if(testComm.
Rank() == 0){
505 std::cout <<
"Comparing results to expected....";
507 "CM/flocm_acousticpulse_1000.h5",
508 errorTolerance,compareStream);
509 std::cout << (returnValue == 0 ?
"passed." :
"failed.")
514 std::cout << testFunctionName <<
": Resulting state comparison " 515 <<
"yielded negative result:" 517 << compareStream.str()
519 acousticTestResult =
false;
526 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:RectilinearFarfield2D",
537 bool acousticTestResult =
true;
539 int myRank = testComm.
Rank();
540 int numProc = testComm.
NProc();
542 const std::string testFunctionName(
"TestPlasCom2_APCurvilinearFarfield2D");
543 const std::string testSuiteName(
"InviscidTests");
544 const std::string testCaseName(
"AcousticPulseFarfield2D");
545 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
547 std::ostringstream compareStream;
548 double errorTolerance = 5e-14;
552 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
555 const char *argv[] = {
"plascom2x",
"-c",
"curvilinear.config",NULL};
562 acousticTestResult =
false;
563 std::cout << testFunctionName <<
": testing directory (" 564 << testDirectory <<
") did not exist. Aborting test." 580 std::cout <<
"Running PlasCom2..." << std::endl;
584 std::cout <<
"Done running PlasCom2." << std::endl;
587 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 588 << returnValue <<
"). Test failed." << std::endl;
589 acousticTestResult =
false;
597 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
598 <<
"output file (PlasCom2/PlasCom2_000001000.h5). Test failed." << std::endl;
599 acousticTestResult =
false;
603 if(testComm.
Rank() == 0){
604 std::cout <<
"Comparing results to expected....";
606 "CM/flocm_acousticpulse_1000.h5",
607 errorTolerance,compareStream);
608 std::cout << (returnValue == 0 ?
"passed." :
"failed.")
613 std::cout << testFunctionName <<
": Resulting state comparison " 614 <<
"yielded negative result:" 616 << compareStream.str()
618 acousticTestResult =
false;
625 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:CurvilinearFarfield2D",
636 bool acousticTestResult =
true;
638 int myRank = testComm.
Rank();
639 int numProc = testComm.
NProc();
641 const std::string testFunctionName(
"TestPlasCom2_AcousticPulseFarfield3D");
642 const std::string testSuiteName(
"InviscidTests");
643 const std::string testCaseName(
"AcousticPulseFarfield3D");
644 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
646 std::ostringstream compareStream;
647 double errorTolerance = 5e-14;
651 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
654 const char *argv[] = {
"plascom2x",
"-c",
"acousticPulse.config",NULL};
663 acousticTestResult =
false;
664 std::cout << testFunctionName <<
": testing directory (" 665 << testDirectory <<
") did not exist. Aborting test." 681 std::cout <<
"Running PlasCom2..." << std::endl;
685 std::cout <<
"Done running PlasCom2." << std::endl;
688 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 689 << returnValue <<
"). Test failed." << std::endl;
690 acousticTestResult =
false;
698 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
699 <<
"output file (PlasCom2/PlasCom2_000001000.h5). Test failed." << std::endl;
700 acousticTestResult =
false;
704 if(testComm.
Rank() == 0){
705 std::cout <<
"Comparing results to expected....";
708 "CM/flocm_acousticpulse_5.h5",
709 errorTolerance,compareStream);
711 std::cout << (returnValue == 0 ?
"passed." :
"failed.")
714 if(returnValue != 0){
715 std::cout << testFunctionName <<
": Resulting state comparison " 716 <<
"yielded negative result:" 718 << compareStream.str()
720 acousticTestResult =
false;
727 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:AcousticPulseFarfield3D",
738 bool acousticTestResult =
true;
740 int myRank = testComm.
Rank();
741 int numProc = testComm.
NProc();
743 const std::string testFunctionName(
"TestPlasCom2_APRectilinearFarfield3D");
744 const std::string testSuiteName(
"InviscidTests");
745 const std::string testCaseName(
"AcousticPulseFarfield3D");
746 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
748 std::ostringstream compareStream;
749 double errorTolerance = 5e-14;
753 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
756 const char *argv[] = {
"plascom2x",
"-c",
"rectilinear.config",NULL};
765 acousticTestResult =
false;
766 std::cout << testFunctionName <<
": testing directory (" 767 << testDirectory <<
") did not exist. Aborting test." 783 std::cout <<
"Running PlasCom2..." << std::endl;
787 std::cout <<
"Done running PlasCom2." << std::endl;
790 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 791 << returnValue <<
"). Test failed." << std::endl;
792 acousticTestResult =
false;
800 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
801 <<
"output file (PlasCom2/PlasCom2_000001000.h5). Test failed." << std::endl;
802 acousticTestResult =
false;
806 if(testComm.
Rank() == 0){
807 std::cout <<
"Comparing results to expected....";
810 "CM/flocm_acousticpulse_5.h5",
811 errorTolerance,compareStream);
813 std::cout << (returnValue == 0 ?
"passed." :
"failed.")
816 if(returnValue != 0){
817 std::cout << testFunctionName <<
": Resulting state comparison " 818 <<
"yielded negative result:" 820 << compareStream.str()
822 acousticTestResult =
false;
829 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:RectilinearFarfield3D",
840 bool acousticTestResult =
true;
842 int myRank = testComm.
Rank();
843 int numProc = testComm.
NProc();
845 const std::string testFunctionName(
"TestPlasCom2_APCurvilinearFarfield3D");
846 const std::string testSuiteName(
"InviscidTests");
847 const std::string testCaseName(
"AcousticPulseFarfield3D");
848 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
850 std::ostringstream compareStream;
851 double errorTolerance = 5e-14;
855 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
858 const char *argv[] = {
"plascom2x",
"-c",
"curvilinear.config",NULL};
867 acousticTestResult =
false;
868 std::cout << testFunctionName <<
": testing directory (" 869 << testDirectory <<
") did not exist. Aborting test." 885 std::cout <<
"Running PlasCom2..." << std::endl;
889 std::cout <<
"Done running PlasCom2." << std::endl;
892 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 893 << returnValue <<
"). Test failed." << std::endl;
894 acousticTestResult =
false;
902 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
903 <<
"output file (PlasCom2/PlasCom2_000001000.h5). Test failed." << std::endl;
904 acousticTestResult =
false;
908 if(testComm.
Rank() == 0){
909 std::cout <<
"Comparing results to expected....";
912 "CM/flocm_acousticpulse_5.h5",
913 errorTolerance,compareStream);
915 std::cout << (returnValue == 0 ?
"passed." :
"failed.")
918 if(returnValue != 0){
919 std::cout << testFunctionName <<
": Resulting state comparison " 920 <<
"yielded negative result:" 922 << compareStream.str()
924 acousticTestResult =
false;
931 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:CurvilinearFarfield3D",
942 bool acousticTestResult =
true;
944 int myRank = testComm.
Rank();
945 int numProc = testComm.
NProc();
947 const std::string testFunctionName(
"TestPlasCom2_AcousticPulseSlipWall2D");
948 const std::string testSuiteName(
"InviscidTests");
949 const std::string testCaseName(
"AcousticPulseSlipwall2D");
950 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
952 std::ostringstream compareStream;
953 double errorTolerance = 5e-14;
957 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
960 const char *argv[] = {
"plascom2x",
"-c",
"acousticPulse.config",NULL};
969 acousticTestResult =
false;
970 std::cout << testFunctionName <<
": testing directory (" 971 << testDirectory <<
") did not exist. Aborting test." 987 std::cout <<
"Running PlasCom2..." << std::endl;
991 std::cout <<
"Done running PlasCom2." << std::endl;
994 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 995 << returnValue <<
"). Test failed." << std::endl;
996 acousticTestResult =
false;
1004 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
1005 <<
"output file (PlasCom2/PlasCom2_000002000.h5). Test failed." << std::endl;
1006 acousticTestResult =
false;
1010 if(testComm.
Rank() == 0){
1011 std::cout <<
"Comparing results to expected....";
1014 "CM/flocm_acousticpulse_2000.h5",
1015 errorTolerance,compareStream);
1017 std::cout << (returnValue == 0 ?
"passed." :
"failed.")
1020 if(returnValue != 0){
1021 std::cout << testFunctionName <<
": Resulting state comparison " 1022 <<
"yielded negative result:" 1024 << compareStream.str()
1026 acousticTestResult =
false;
1033 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:AcousticPulseSlipwall2D",
1034 acousticTestResult);
1045 bool acousticTestResult =
true;
1047 int myRank = testComm.
Rank();
1048 int numProc = testComm.
NProc();
1050 const std::string testFunctionName(
"TestPlasCom2_APRectilinearSlipwall2D");
1051 const std::string testSuiteName(
"InviscidTests");
1052 const std::string testCaseName(
"AcousticPulseSlipwall2D");
1053 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
1055 std::ostringstream compareStream;
1056 double errorTolerance = 5e-14;
1060 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
1063 const char *argv[] = {
"plascom2x",
"-c",
"rectilinear.config",NULL};
1065 int returnValue = 0;
1072 acousticTestResult =
false;
1073 std::cout << testFunctionName <<
": testing directory (" 1074 << testDirectory <<
") did not exist. Aborting test." 1090 std::cout <<
"Running PlasCom2..." << std::endl;
1094 std::cout <<
"Done running PlasCom2." << std::endl;
1096 if(returnValue > 0){
1097 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 1098 << returnValue <<
"). Test failed." << std::endl;
1099 acousticTestResult =
false;
1107 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
1108 <<
"output file (PlasCom2/PlasCom2_000002000.h5). Test failed." << std::endl;
1109 acousticTestResult =
false;
1113 if(testComm.
Rank() == 0){
1114 std::cout <<
"Comparing results to expected....";
1117 "CM/flocm_acousticpulse_2000.h5",
1118 errorTolerance,compareStream);
1120 std::cout << (returnValue == 0 ?
"passed." :
"failed.")
1123 if(returnValue != 0){
1124 std::cout << testFunctionName <<
": Resulting state comparison " 1125 <<
"yielded negative result:" 1127 << compareStream.str()
1129 acousticTestResult =
false;
1136 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:RectilinearSlipwall2D",
1137 acousticTestResult);
1147 bool acousticTestResult =
true;
1149 int myRank = testComm.
Rank();
1150 int numProc = testComm.
NProc();
1152 const std::string testFunctionName(
"TestPlasCom2_APCurvilinearSlipwall2D");
1153 const std::string testSuiteName(
"InviscidTests");
1154 const std::string testCaseName(
"AcousticPulseSlipwall2D");
1155 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
1157 std::ostringstream compareStream;
1158 double errorTolerance = 5e-14;
1162 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
1165 const char *argv[] = {
"plascom2x",
"-c",
"curvilinear.config",NULL};
1167 int returnValue = 0;
1174 acousticTestResult =
false;
1175 std::cout << testFunctionName <<
": testing directory (" 1176 << testDirectory <<
") did not exist. Aborting test." 1192 std::cout <<
"Running PlasCom2..." << std::endl;
1196 std::cout <<
"Done running PlasCom2." << std::endl;
1198 if(returnValue > 0){
1199 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 1200 << returnValue <<
"). Test failed." << std::endl;
1201 acousticTestResult =
false;
1209 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
1210 <<
"output file (PlasCom2/PlasCom2_000002000.h5). Test failed." << std::endl;
1211 acousticTestResult =
false;
1215 if(testComm.
Rank() == 0){
1216 std::cout <<
"Comparing results to expected....";
1219 "CM/flocm_acousticpulse_2000.h5",
1220 errorTolerance,compareStream);
1222 std::cout << (returnValue == 0 ?
"passed." :
"failed.")
1225 if(returnValue != 0){
1226 std::cout << testFunctionName <<
": Resulting state comparison " 1227 <<
"yielded negative result:" 1229 << compareStream.str()
1231 acousticTestResult =
false;
1238 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:CurvilinearSlipwall2D",
1239 acousticTestResult);
1249 bool acousticTestResult =
true;
1251 int myRank = testComm.
Rank();
1252 int numProc = testComm.
NProc();
1254 const std::string testFunctionName(
"TestPlasCom2_AcousticPulseSlipWall3D");
1255 const std::string testSuiteName(
"InviscidTests");
1256 const std::string testCaseName(
"AcousticPulseSlipwall3D");
1257 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
1259 std::ostringstream compareStream;
1260 double errorTolerance = 5e-14;
1264 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
1267 const char *argv[] = {
"plascom2x",
"-c",
"acousticPulse.config",NULL};
1269 int returnValue = 0;
1276 acousticTestResult =
false;
1277 std::cout << testFunctionName <<
": testing directory (" 1278 << testDirectory <<
") did not exist. Aborting test." 1294 std::cout <<
"Running PlasCom2..." << std::endl;
1298 std::cout <<
"Done running PlasCom2." << std::endl;
1300 if(returnValue > 0){
1301 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 1302 << returnValue <<
"). Test failed." << std::endl;
1303 acousticTestResult =
false;
1311 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
1312 <<
"output file (PlasCom2/PlasCom2_000000010.h5). Test failed." << std::endl;
1313 acousticTestResult =
false;
1317 if(testComm.
Rank() == 0){
1318 std::cout <<
"Comparing results to expected....";
1321 "CM/flocm_acousticpulse_10.h5",
1322 errorTolerance,compareStream);
1324 std::cout << (returnValue == 0 ?
"passed." :
"failed.")
1327 if(returnValue != 0){
1328 std::cout << testFunctionName <<
": Resulting state comparison " 1329 <<
"yielded negative result:" 1331 << compareStream.str()
1333 acousticTestResult =
false;
1340 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:AcousticPulseSlipwall3D",
1341 acousticTestResult);
1351 bool acousticTestResult =
true;
1353 int myRank = testComm.
Rank();
1354 int numProc = testComm.
NProc();
1356 const std::string testFunctionName(
"TestPlasCom2_APRectilinearSlipWall3D");
1357 const std::string testSuiteName(
"InviscidTests");
1358 const std::string testCaseName(
"AcousticPulseSlipwall3D");
1359 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
1361 std::ostringstream compareStream;
1362 double errorTolerance = 5e-14;
1366 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
1369 const char *argv[] = {
"plascom2x",
"-c",
"rectilinear.config",NULL};
1371 int returnValue = 0;
1378 acousticTestResult =
false;
1379 std::cout << testFunctionName <<
": testing directory (" 1380 << testDirectory <<
") did not exist. Aborting test." 1397 std::cout <<
"Running PlasCom2..." << std::endl;
1401 std::cout <<
"Done running PlasCom2." << std::endl;
1403 if(returnValue > 0){
1404 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 1405 << returnValue <<
"). Test failed." << std::endl;
1406 acousticTestResult =
false;
1414 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
1415 <<
"output file (PlasCom2/PlasCom2_000000010.h5). Test failed." << std::endl;
1416 acousticTestResult =
false;
1420 if(testComm.
Rank() == 0){
1421 std::cout <<
"Comparing results to expected....";
1424 "CM/flocm_acousticpulse_10.h5",
1425 errorTolerance,compareStream);
1427 std::cout << (returnValue == 0 ?
"passed." :
"failed.")
1430 if(returnValue != 0){
1431 std::cout << testFunctionName <<
": Resulting state comparison " 1432 <<
"yielded negative result:" 1434 << compareStream.str()
1436 acousticTestResult =
false;
1443 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:RectilinearSlipwall3D",
1444 acousticTestResult);
1455 bool acousticTestResult =
true;
1457 int myRank = testComm.
Rank();
1458 int numProc = testComm.
NProc();
1460 const std::string testFunctionName(
"TestPlasCom2_APCurvilinearSlipWall3D");
1461 const std::string testSuiteName(
"InviscidTests");
1462 const std::string testCaseName(
"AcousticPulseSlipwall3D");
1463 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
1465 std::ostringstream compareStream;
1466 double errorTolerance = 5e-14;
1470 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
1473 const char *argv[] = {
"plascom2x",
"-c",
"curvilinear.config",NULL};
1475 int returnValue = 0;
1482 acousticTestResult =
false;
1483 std::cout << testFunctionName <<
": testing directory (" 1484 << testDirectory <<
") did not exist. Aborting test." 1501 std::cout <<
"Running PlasCom2..." << std::endl;
1505 std::cout <<
"Done running PlasCom2." << std::endl;
1507 if(returnValue > 0){
1508 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 1509 << returnValue <<
"). Test failed." << std::endl;
1510 acousticTestResult =
false;
1518 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
1519 <<
"output file (PlasCom2/PlasCom2_000000010.h5). Test failed." << std::endl;
1520 acousticTestResult =
false;
1524 if(testComm.
Rank() == 0){
1525 std::cout <<
"Comparing results to expected....";
1528 "CM/flocm_acousticpulse_10.h5",
1529 errorTolerance,compareStream);
1531 std::cout << (returnValue == 0 ?
"passed." :
"failed.")
1534 if(returnValue != 0){
1535 std::cout << testFunctionName <<
": Resulting state comparison " 1536 <<
"yielded negative result:" 1538 << compareStream.str()
1540 acousticTestResult =
false;
1547 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:CurvilinearSlipwall3D",
1548 acousticTestResult);
1558 bool acousticTestResult =
true;
1560 int myRank = testComm.
Rank();
1561 int numProc = testComm.
NProc();
1563 const std::string testFunctionName(
"TestPlasCom2_AcousticPulsePeriodic3D");
1564 const std::string testSuiteName(
"InviscidTests");
1565 const std::string testCaseName(
"AcousticPulsePeriodic3D");
1566 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
1568 std::ostringstream compareStream;
1569 double errorTolerance = 5e-14;
1573 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
1576 const char *argv[] = {
"plascom2x",
"-c",
"acousticPulse.config",NULL};
1578 int returnValue = 0;
1585 acousticTestResult =
false;
1586 std::cout <<
"TestPlasCom2_AcousticPulsePeriodic3D: testing directory (" 1587 << testDirectory <<
") did not exist. Aborting test." 1600 std::cout <<
"Running PlasCom2..." << std::endl;
1604 std::cout <<
"Done running PlasCom2." << std::endl;
1606 if(returnValue > 0){
1607 std::cout <<
"TestPlasCom2_AcousticPulsePeriodic3D: PlasCom2 returned error code (" 1608 << returnValue <<
"). Test failed." << std::endl;
1609 acousticTestResult =
false;
1618 std::cout <<
"TestPlasCom2_AcousticPulsePeriodic3D: PlasCom2 failed to produce expected" << std::endl
1619 <<
"output file (PlasCom2/PlasCom2_000000005.h5). Test failed." << std::endl;
1620 acousticTestResult =
false;
1625 std::cout <<
"Comparing results to expected.....";
1627 "CM/flocm_acousticpulse_5.h5",
1628 errorTolerance,compareStream);
1629 if(returnValue == 0)
1630 std::cout <<
"passed." << std::endl;
1632 std::cout <<
"failed." << std::endl;
1635 if(returnValue > 0){
1636 std::cout <<
"TestPlasCom2_AcousticPulsePeriodic3D: Resulting state comparison yielded negative result:" 1638 << compareStream.str()
1640 acousticTestResult =
false;
1647 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:AcousticPulsePeriodic3D",
1648 acousticTestResult);
1658 bool acousticTestResult =
true;
1660 int myRank = testComm.
Rank();
1661 int numProc = testComm.
NProc();
1663 const std::string testFunctionName(
"TestPlasCom2_APRectilinearPeriodic3D");
1664 const std::string testSuiteName(
"InviscidTests");
1665 const std::string testCaseName(
"AcousticPulsePeriodic3D");
1666 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
1668 std::ostringstream compareStream;
1669 double errorTolerance = 5e-14;
1673 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
1676 const char *argv[] = {
"plascom2x",
"-c",
"rectilinear.config",NULL};
1678 int returnValue = 0;
1685 acousticTestResult =
false;
1686 std::cout << testFunctionName <<
": testing directory (" 1687 << testDirectory <<
") did not exist. Aborting test." 1703 std::cout <<
"Running PlasCom2..." << std::endl;
1707 std::cout <<
"Done running PlasCom2." << std::endl;
1709 if(returnValue > 0){
1710 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 1711 << returnValue <<
"). Test failed." << std::endl;
1712 acousticTestResult =
false;
1721 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
1722 <<
"output file (PlasCom2/PlasCom2_000000005.h5). Test failed." << std::endl;
1723 acousticTestResult =
false;
1728 std::cout <<
"Comparing results to expected.....";
1730 "CM/flocm_acousticpulse_5.h5",
1731 errorTolerance,compareStream);
1732 if(returnValue == 0)
1733 std::cout <<
"passed." << std::endl;
1735 std::cout <<
"failed." << std::endl;
1738 if(returnValue > 0){
1739 std::cout << testFunctionName <<
": Resulting state comparison yielded negative result:" 1741 << compareStream.str()
1743 acousticTestResult =
false;
1750 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:RectilinearPeriodic3D",
1751 acousticTestResult);
1761 bool acousticTestResult =
true;
1763 int myRank = testComm.
Rank();
1764 int numProc = testComm.
NProc();
1766 const std::string testFunctionName(
"TestPlasCom2_APCurvilinearPeriodic3D");
1767 const std::string testSuiteName(
"InviscidTests");
1768 const std::string testCaseName(
"AcousticPulsePeriodic3D");
1769 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
1771 std::ostringstream compareStream;
1772 double errorTolerance = 5e-14;
1776 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
1779 const char *argv[] = {
"plascom2x",
"-c",
"curvilinear.config",NULL};
1781 int returnValue = 0;
1788 acousticTestResult =
false;
1789 std::cout << testFunctionName <<
": testing directory (" 1790 << testDirectory <<
") did not exist. Aborting test." 1806 std::cout <<
"Running PlasCom2..." << std::endl;
1810 std::cout <<
"Done running PlasCom2." << std::endl;
1812 if(returnValue > 0){
1813 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 1814 << returnValue <<
"). Test failed." << std::endl;
1815 acousticTestResult =
false;
1824 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
1825 <<
"output file (PlasCom2/PlasCom2_000000005.h5). Test failed." << std::endl;
1826 acousticTestResult =
false;
1831 std::cout <<
"Comparing results to expected.....";
1833 "CM/flocm_acousticpulse_5.h5",
1834 errorTolerance,compareStream);
1835 if(returnValue == 0)
1836 std::cout <<
"passed." << std::endl;
1838 std::cout <<
"failed." << std::endl;
1841 if(returnValue > 0){
1842 std::cout << testFunctionName <<
": Resulting state comparison yielded negative result:" 1844 << compareStream.str()
1846 acousticTestResult =
false;
1853 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:CurvilinearPeriodic3D",
1854 acousticTestResult);
1864 bool acousticTestResult =
true;
1866 int myRank = testComm.
Rank();
1867 int numProc = testComm.
NProc();
1869 const std::string testFunctionName(
"TestPlasCom2_AcousticPulseSponge2D");
1870 const std::string testSuiteName(
"InviscidTests");
1871 const std::string testCaseName(
"AcousticPulseSponge2D");
1872 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
1874 std::ostringstream compareStream;
1875 double errorTolerance = 5e-14;
1879 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
1882 const char *argv[] = {
"plascom2x",
"-c",
"acousticPulse.config",NULL};
1884 int returnValue = 0;
1891 acousticTestResult =
false;
1892 std::cout << testFunctionName <<
": testing directory (" 1893 << testDirectory <<
") did not exist. Aborting test." 1906 std::cout <<
"Running PlasCom2..." << std::endl;
1910 std::cout <<
"Done running PlasCom2." << std::endl;
1912 if(returnValue > 0){
1913 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 1914 << returnValue <<
"). Test failed." << std::endl;
1915 acousticTestResult =
false;
1924 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
1925 <<
"output file (PlasCom2/PlasCom2_000001000.h5). Test failed." << std::endl;
1926 acousticTestResult =
false;
1931 std::cout << testFunctionName <<
": Missing expected result (" 1932 <<
"CM/flocm_acousticpulse_1000.h5)" << std::endl;
1933 acousticTestResult =
false;
1938 if(testComm.
Rank() == 0){
1939 std::cout <<
"Comparing results to expected....";
1941 "CM/flocm_acousticpulse_1000.h5",
1942 errorTolerance,compareStream);
1943 std::cout << (returnValue == 0 ?
"passed." :
"failed.")
1949 if(returnValue > 0){
1950 std::cout << testFunctionName <<
": Resulting state comparison " 1951 <<
"yielded negative result:" 1953 << compareStream.str()
1955 acousticTestResult =
false;
1962 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:AcousticPulseSponge2D",
1963 acousticTestResult);
1973 bool acousticTestResult =
true;
1975 int myRank = testComm.
Rank();
1976 int numProc = testComm.
NProc();
1978 const std::string testFunctionName(
"TestPlasCom2_RectilinearSponge2D");
1979 const std::string testSuiteName(
"InviscidTests");
1980 const std::string testCaseName(
"AcousticPulseSponge2D");
1981 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
1983 std::ostringstream compareStream;
1984 double errorTolerance = 5e-14;
1988 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
1991 const char *argv[] = {
"plascom2x",
"-c",
"rectilinear.config",NULL};
1993 int returnValue = 0;
2000 acousticTestResult =
false;
2001 std::cout << testFunctionName <<
": testing directory (" 2002 << testDirectory <<
") did not exist. Aborting test." 2018 std::cout <<
"Running PlasCom2..." << std::endl;
2022 std::cout <<
"Done running PlasCom2." << std::endl;
2024 if(returnValue > 0){
2025 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 2026 << returnValue <<
"). Test failed." << std::endl;
2027 acousticTestResult =
false;
2039 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
2040 <<
"output file (PlasCom2/PlasCom2_000001000.h5). Test failed." << std::endl;
2041 acousticTestResult =
false;
2046 std::cout << testFunctionName <<
": Missing expected result (" 2047 <<
"CM/flocm_acousticpulse_1000.h5)" << std::endl;
2048 acousticTestResult =
false;
2053 if(testComm.
Rank() == 0){
2054 std::cout <<
"Comparing results to expected....";
2056 "CM/flocm_acousticpulse_1000.h5",
2057 errorTolerance,compareStream);
2058 std::cout << (returnValue == 0 ?
"passed." :
"failed.")
2064 if(returnValue > 0){
2065 std::cout << testFunctionName <<
": Resulting state comparison " 2066 <<
"yielded negative result:" 2068 << compareStream.str()
2070 acousticTestResult =
false;
2077 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:RectilinearSponge2D",
2078 acousticTestResult);
2088 bool acousticTestResult =
true;
2090 int myRank = testComm.
Rank();
2091 int numProc = testComm.
NProc();
2093 const std::string testFunctionName(
"TestPlasCom2_CurvilinearSponge2D");
2094 const std::string testSuiteName(
"InviscidTests");
2095 const std::string testCaseName(
"AcousticPulseSponge2D");
2096 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
2098 std::ostringstream compareStream;
2099 double errorTolerance = 5e-14;
2103 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
2106 const char *argv[] = {
"plascom2x",
"-c",
"curvilinear.config",NULL};
2108 int returnValue = 0;
2115 acousticTestResult =
false;
2116 std::cout << testFunctionName <<
": testing directory (" 2117 << testDirectory <<
") did not exist. Aborting test." 2133 std::cout <<
"Running PlasCom2..." << std::endl;
2137 std::cout <<
"Done running PlasCom2." << std::endl;
2139 if(returnValue > 0){
2140 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 2141 << returnValue <<
"). Test failed." << std::endl;
2142 acousticTestResult =
false;
2151 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
2152 <<
"output file (PlasCom2/PlasCom2_000001000.h5). Test failed." << std::endl;
2153 acousticTestResult =
false;
2158 std::cout << testFunctionName <<
": Missing expected result (" 2159 <<
"CM/flocm_acousticpulse_1000.h5)" << std::endl;
2160 acousticTestResult =
false;
2165 if(testComm.
Rank() == 0){
2166 std::cout <<
"Comparing results to expected....";
2168 "CM/flocm_acousticpulse_1000.h5",
2169 errorTolerance,compareStream);
2170 std::cout << (returnValue == 0 ?
"passed." :
"failed.")
2176 if(returnValue > 0){
2177 std::cout << testFunctionName <<
": Resulting state comparison " 2178 <<
"yielded negative result:" 2180 << compareStream.str()
2182 acousticTestResult =
false;
2189 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:CurvilinearSponge2D",
2190 acousticTestResult);
2200 bool acousticTestResult =
true;
2202 int myRank = testComm.
Rank();
2203 int numProc = testComm.
NProc();
2205 const std::string testFunctionName(
"TestPlasCom2_Restart");
2206 const std::string testSuiteName(
"InviscidTests");
2207 const std::string testCaseName(
"AcousticPulseSponge2D");
2208 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
2210 std::ostringstream compareStream;
2211 double errorTolerance = 5e-14;
2215 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
2218 const char *argv1[] = {
"plascom2x",
"-c",
"curvilinear2.config",NULL};
2220 int returnValue = 0;
2225 const char *argv2[] = {
"plascom2x",
"PlasCom2_000001000.h5",
"PlasCom2_000000000.h5",NULL};
2231 acousticTestResult =
false;
2232 std::cout << testFunctionName <<
": testing directory (" 2233 << testDirectory <<
") did not exist. Aborting test." 2256 std::cout <<
"Running PlasCom2..." << std::endl;
2260 std::cout <<
"Done running PlasCom2." << std::endl;
2262 if(returnValue > 0){
2263 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 2264 << returnValue <<
"). Test failed." << std::endl;
2265 acousticTestResult =
false;
2274 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
2275 <<
"output file (PlasCom2_000002000.h5). Test failed." << std::endl;
2276 acousticTestResult =
false;
2280 ix::sys::Rename(
"PlasCom2_000002000.h5",
"original/PlasCom2_000002000.h5");
2288 std::cout <<
"Restarting PlasCom2..." << std::endl;
2292 std::cout <<
"Done running PlasCom2." << std::endl;
2294 if(returnValue > 0){
2295 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 2296 << returnValue <<
"). Test failed." << std::endl;
2297 acousticTestResult =
false;
2302 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
2303 <<
"output file (PlasCom2_000002000.h5). Test failed." << std::endl;
2304 acousticTestResult =
false;
2310 std::cout <<
"Comparing results to expected....";
2312 "original/PlasCom2_000002000.h5",
2313 errorTolerance,compareStream);
2314 std::cout << (returnValue == 0 ?
"passed." :
"failed.")
2320 if(returnValue > 0){
2321 std::cout << testFunctionName <<
": Resulting state comparison " 2322 <<
"yielded negative result:" 2324 << compareStream.str()
2326 acousticTestResult =
false;
2334 acousticTestResult);
2344 bool acousticTestResult =
true;
2346 int myRank = testComm.
Rank();
2347 int numProc = testComm.
NProc();
2349 const std::string testFunctionName(
"TestPlasCom2_AcousticPulseSponge3D");
2350 const std::string testSuiteName(
"InviscidTests");
2351 const std::string testCaseName(
"AcousticPulseSponge3D");
2352 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
2354 std::ostringstream compareStream;
2355 double errorTolerance = 5e-14;
2359 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
2362 const char *argv[] = {
"plascom2x",
"-c",
"acousticPulse.config",NULL};
2364 int returnValue = 0;
2370 acousticTestResult =
false;
2371 std::cout << testFunctionName <<
": testing directory (" 2372 << testDirectory <<
") did not exist. Aborting test." 2385 std::cout <<
"Running PlasCom2..." << std::endl;
2389 std::cout <<
"Done running PlasCom2." << std::endl;
2391 if(returnValue > 0){
2392 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 2393 << returnValue <<
"). Test failed." << std::endl;
2394 acousticTestResult =
false;
2402 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
2403 <<
"output file (PlasCom2/PlasCom2_000000010.h5). Test failed." << std::endl;
2404 acousticTestResult =
false;
2408 if(testComm.
Rank() == 0){
2409 std::cout <<
"Comparing results to expected....";
2411 "CM/flocm_acousticpulse_10.h5",
2412 errorTolerance,compareStream);
2413 std::cout << (returnValue == 0 ?
"passed." :
"failed.")
2417 if(returnValue > 0){
2418 std::cout << testFunctionName <<
": Resulting state comparison " 2419 <<
"yielded negative result:" 2421 << compareStream.str()
2423 acousticTestResult =
false;
2430 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:AcousticPulseSponge3D",
2431 acousticTestResult);
2441 bool acousticTestResult =
true;
2443 int myRank = testComm.
Rank();
2444 int numProc = testComm.
NProc();
2446 const std::string testFunctionName(
"TestPlasCom2_APRectilinearSponge3D");
2447 const std::string testSuiteName(
"InviscidTests");
2448 const std::string testCaseName(
"AcousticPulseSponge3D");
2449 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
2451 std::ostringstream compareStream;
2452 double errorTolerance = 5e-14;
2456 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
2459 const char *argv[] = {
"plascom2x",
"-c",
"rectilinear.config",NULL};
2461 int returnValue = 0;
2467 acousticTestResult =
false;
2468 std::cout << testFunctionName <<
": testing directory (" 2469 << testDirectory <<
") did not exist. Aborting test." 2485 std::cout <<
"Running PlasCom2..." << std::endl;
2489 std::cout <<
"Done running PlasCom2." << std::endl;
2491 if(returnValue > 0){
2492 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 2493 << returnValue <<
"). Test failed." << std::endl;
2494 acousticTestResult =
false;
2502 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
2503 <<
"output file (PlasCom2/PlasCom2_000000010.h5). Test failed." << std::endl;
2504 acousticTestResult =
false;
2508 if(testComm.
Rank() == 0){
2509 std::cout <<
"Comparing results to expected....";
2511 "CM/flocm_acousticpulse_10.h5",
2512 errorTolerance,compareStream);
2513 std::cout << (returnValue == 0 ?
"passed." :
"failed.")
2517 if(returnValue > 0){
2518 std::cout << testFunctionName <<
": Resulting state comparison " 2519 <<
"yielded negative result:" 2521 << compareStream.str()
2523 acousticTestResult =
false;
2530 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:RectilinearSponge3D",
2531 acousticTestResult);
2542 bool acousticTestResult =
true;
2544 int myRank = testComm.
Rank();
2545 int numProc = testComm.
NProc();
2547 const std::string testFunctionName(
"TestPlasCom2_APCurvilinearSponge3D");
2548 const std::string testSuiteName(
"InviscidTests");
2549 const std::string testCaseName(
"AcousticPulseSponge3D");
2550 const std::string testDirectory(testSuiteName+
"/"+testCaseName);
2552 std::ostringstream compareStream;
2553 double errorTolerance = 5e-14;
2557 std::cout <<
"TestFunction: " << testFunctionName << std::endl;
2560 const char *argv[] = {
"plascom2x",
"-c",
"curvilinear.config",NULL};
2562 int returnValue = 0;
2568 acousticTestResult =
false;
2569 std::cout << testFunctionName <<
": testing directory (" 2570 << testDirectory <<
") did not exist. Aborting test." 2586 std::cout <<
"Running PlasCom2..." << std::endl;
2590 std::cout <<
"Done running PlasCom2." << std::endl;
2592 if(returnValue > 0){
2593 std::cout << testFunctionName <<
": PlasCom2 returned error code (" 2594 << returnValue <<
"). Test failed." << std::endl;
2595 acousticTestResult =
false;
2603 std::cout << testFunctionName <<
": PlasCom2 failed to produce expected" << std::endl
2604 <<
"output file (PlasCom2/PlasCom2_000000010.h5). Test failed." << std::endl;
2605 acousticTestResult =
false;
2609 if(testComm.
Rank() == 0){
2610 std::cout <<
"Comparing results to expected....";
2612 "CM/flocm_acousticpulse_10.h5",
2613 errorTolerance,compareStream);
2614 std::cout << (returnValue == 0 ?
"passed." :
"failed.")
2618 if(returnValue > 0){
2619 std::cout << testFunctionName <<
": Resulting state comparison " 2620 <<
"yielded negative result:" 2622 << compareStream.str()
2624 acousticTestResult =
false;
2631 parallelUnitResults.
UpdateResult(
"PlasCom2:Euler:CurvilinearSponge3D",
2632 acousticTestResult);
void TestPlasCom2_APCurvilinearFarfield3D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
void TestPlasCom2_AcousticPulseFarfield3D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
void TestPlasCom2_AcousticPulsePeriodic3D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
int ApplicationDriver(ApplicationType &simulationApplication)
void TestPlasCom2_AcousticPulseFarfield2D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
void TestPlasCom2_APCurvilinearSlipwall2D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
int Remove(const std::string &fname)
void TestPlasCom2_APRectilinearPeriodic3D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
std::vector< DomainBaseType > domainvector
void TestPlasCom2_APCurvilinearSlipwall3D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
void TestPlasCom2_APRectilinearFarfield3D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
int PC2Compare(const std::string &redFileName, const std::string &blueFileName, double errTolerance, std::ostream &outStream)
Read two HDF5 files and compare the state data therein.
void TestPlasCom2_APRectilinearSponge3D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
void TestPlasCom2_Restart(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
bool CheckResult(bool &localResult, pcpp::CommunicatorType &testComm)
int ChDir(const std::string &path)
void TestPlasCom2_AcousticPulsePeriodic2D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
Encapsulating class for collections of test results.
simulation::state::base state_t
int CreateDirectory(const std::string &fname)
void TestPlasCom2_AcousticPulseSponge3D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
bool FILEEXISTS(const std::string &fname)
void TestPlasCom2_APCurvilinearPeriodic2D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
Main encapsulation of MPI.
void TestPlasCom2_AcousticPulseSlipwall2D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
Testing constructs for unit testing.
int Rename(const std::string &source_file, const std::string &target_file)
void TestPlasCom2_APCurvilinearSponge3D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
void TestPlasCom2_APRectilinearSlipwall3D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
void TestPlasCom2_APCurvilinearSponge2D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
void TestPlasCom2_APRectilinearSlipwall2D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
void UpdateResult(const std::string &name, const ValueType &result)
Updates an existing test result.
void TestPlasCom2_APRectilinearFarfield2D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
plascom2::application::domainvector DomainVector
void TestPlasCom2_APRectilinearSponge2D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
void TestPlasCom2_APRectilinearPeriodic2D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
simulation::grid::parallel_blockstructured pbsgrid_t
void TestPlasCom2_AcousticPulseSponge2D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
void TestPlasCom2_AcousticPulseSlipwall3D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
void TestPlasCom2_APCurvilinearFarfield2D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)
void TestPlasCom2_APCurvilinearPeriodic3D(ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm)