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

Method seissolMain

src/Initializer/InitProcedure/Init.cpp:95–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93} // namespace
94
95void seissol::initializer::initprocedure::seissolMain(seissol::SeisSol& seissolInstance) {
96 initSeisSol(seissolInstance);
97 reportHardwareRelatedStatus(seissolInstance);
98
99 // just put a barrier here to make sure everyone is synched
100 logInfo(seissol::MPI::mpi.rank()) << "Finishing initialization...";
101 seissol::MPI::barrier(seissol::MPI::mpi.comm());
102
103 seissol::Stopwatch watch;
104 logInfo(seissol::MPI::mpi.rank()) << "Starting simulation.";
105 watch.start();
106 seissolInstance.simulator().simulate(seissolInstance);
107 watch.pause();
108 watch.printTime("Time spent in simulation:");
109
110 // make sure everyone is really done
111 logInfo(seissol::MPI::mpi.rank()) << "Simulation done.";
112 seissol::MPI::barrier(seissol::MPI::mpi.comm());
113
114 closeSeisSol(seissolInstance);
115}

Callers

nothing calls this directly

Calls 10

initSeisSolFunction · 0.85
barrierFunction · 0.85
closeSeisSolFunction · 0.85
rankMethod · 0.80
commMethod · 0.80
simulateMethod · 0.80
pauseMethod · 0.80
printTimeMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected