MCPcopy Create free account
hub / github.com/SeisSol/SeisSol / potentialSyncPoint

Method potentialSyncPoint

src/Modules/Module.cpp:14–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12Module::~Module() = default;
13
14double Module::potentialSyncPoint(double currentTime, double timeTolerance, bool forceSyncPoint) {
15 if (std::abs(currentTime - lastSyncPoint) < timeTolerance) {
16 const int rank = seissol::MPI::mpi.rank();
17 logInfo(rank) << "Ignoring duplicate synchronization point at time" << currentTime
18 << "; the last sync point was at " << lastSyncPoint;
19 } else if (forceSyncPoint || std::abs(currentTime - nextSyncPoint) < timeTolerance) {
20 syncPoint(currentTime);
21 lastSyncPoint = currentTime;
22 nextSyncPoint += isyncInterval;
23 }
24
25 return nextSyncPoint;
26}
27
28void Module::setSimulationStartTime(double time) {
29 assert(isyncInterval > 0);

Callers 1

_callSyncHookMethod · 0.80

Calls 1

rankMethod · 0.80

Tested by

no test coverage detected