Skip to content

Commit

Permalink
create dummy messaging object for sundials solver if no JMS config
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Jul 29, 2024
1 parent d7219a3 commit 620da77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@

NFsim_v1.11/tests/smoke/SimID_273069657_0_.gdat
NFsim_v1.11/tests/smoke/SimID_273069657_0_.species

IDAWin/tests/smoke/SimID_1489333437_0_.ida
6 changes: 6 additions & 0 deletions IDAWin/SundialsSolverStandalone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,12 @@ int main(int argc, char *argv[]) {
break;
}
}
#ifdef USE_MESSAGING
// should only happen during testing for solver compiled with messaging but run locally.
if (SimulationMessaging::getInstVar() == nullptr) {
SimulationMessaging::create();
}
#endif

if (solver.empty()) {
throw "Solver not defined ";
Expand Down

0 comments on commit 620da77

Please sign in to comment.