Skip to content

Commit

Permalink
Forbid solver-steered exit when preCICE is active, close #24
Browse files Browse the repository at this point in the history
  • Loading branch information
uekerman committed Apr 13, 2021
1 parent 951159f commit 38dde22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions replacement_files/driver_structure.cpp
Expand Up @@ -3400,7 +3400,7 @@ void CDriver::StartSolver() {
cout << endl << "------------------------------ Begin Solver -----------------------------" << endl;

// preCICE
while ((ExtIter < config_container[ZONE_0]->GetnExtIter() && precice_usage && precice->isCouplingOngoing()) ||
while ((precice_usage && precice->isCouplingOngoing()) ||
(ExtIter < config_container[ZONE_0]->GetnExtIter() && !precice_usage)) {
// preCICE implicit coupling: saveOldState()
if (precice_usage && precice->isActionRequired(precice->getCowic())) {
Expand Down Expand Up @@ -3464,8 +3464,8 @@ void CDriver::StartSolver() {
Output(ExtIter, suppress_output_by_preCICE);

/*--- If the convergence criteria has been met, terminate the simulation. ---*/

if (StopCalc) break;
if (!precice_usage && StopCalc) break;

ExtIter++;
}
Expand Down

0 comments on commit 38dde22

Please sign in to comment.