Skip to content

Commit

Permalink
Add delay on error
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwoerer committed Jan 28, 2025
1 parent 1a002d2 commit 81d929d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/bout/physicsmodel.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ class PhysicsModel;
#include "bout/unused.hxx"
#include "bout/utils.hxx"

#include <chrono>
#include <thread>
#include <type_traits>
#include <vector>

Expand Down Expand Up @@ -435,6 +437,7 @@ private:
} catch (const BoutException& e) { \
output << "Error encountered: " << e.what(); \
output << e.getBacktrace() << endl; \
std::this_thread::sleep_for(std::chrono::milliseconds(100)); \
MPI_Abort(BoutComm::get(), 1); \
} \
BoutFinalise(); \
Expand Down

0 comments on commit 81d929d

Please sign in to comment.