Skip to content

Commit

Permalink
Run PLM Re-Re test (AMReX-Combustion#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
baperry2 authored Aug 5, 2024
1 parent a716719 commit 3927cfc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ main(int argc, char* argv[])
<< time_now.tm_mday << "." << std::endl;
}

bool raise_failure = (amrptr->okToContinue() == 0);
delete amrptr;

// This MUST follow the above delete as ~Amr() may dump files to disk
Expand Down Expand Up @@ -224,6 +225,10 @@ main(int argc, char* argv[])
BL_PROFILE_VAR_STOP(pmain);
BL_PROFILE_SET_RUN_TIME(dRunTime2);

if (raise_failure) {
amrex::Abort("Simulation stopped early");
}

// Defined and finalized when in gnumake, but not defined in cmake and
// finalization done manually
#ifndef AMREX_USE_SUNDIALS
Expand Down
8 changes: 5 additions & 3 deletions Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ add_test_r(channel-1 ChannelFlow)
add_test_rn(eb-c3 EB-C3)
add_test_r(eb-c4 EB-C4-5)
add_test_r(eb-c5 EB-C4-5)
if(PELE_DIM GREATER 2)
add_test_r(eb-c8-rere-plm EB-C8)
endif()
add_test_rv(eb-c9 EB-C9)
add_test_r(eb-c10 EB-C10)
add_test_rv(eb-c11 EB-C11)
Expand Down Expand Up @@ -298,10 +301,9 @@ add_test_re(zerod-1 zeroD)
add_test_re(spray-eb Spray-EB)
add_test_re(spray-a-wbreakup Spray-A-Wbreakup)
add_test_re(soot-flame Soot-Flame)
add_test_re(eb-c8 EB-C8)
add_test_re(eb-c8-rere-mol EB-C8)
add_test_re(eb-c8-rere-plm EB-C8)
if(PELE_DIM GREATER 2)
add_test_re(eb-c8 EB-C8)
add_test_re(eb-c8-rere-mol EB-C8)
add_test_re(tg-3 TG)
add_test_re(tg-4 TG)
add_test_re(eb-c7 EB-C7)
Expand Down

0 comments on commit 3927cfc

Please sign in to comment.