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

Method initModel

src/Initializer/InitProcedure/InitModel.cpp:345–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343} // namespace
344
345void seissol::initializer::initprocedure::initModel(seissol::SeisSol& seissolInstance) {
346 SCOREP_USER_REGION("init_model", SCOREP_USER_REGION_TYPE_FUNCTION);
347
348 logInfo(seissol::MPI::mpi.rank()) << "Begin init model.";
349
350 // Call the pre mesh initialization hook
351 seissol::Modules::callHook<ModuleHook::PreModel>();
352
353 seissol::Stopwatch watch;
354 watch.start();
355
356 LtsInfo ltsInfo;
357
358 // these four methods need to be called in this order.
359
360 // init LTS
361 logInfo(seissol::MPI::mpi.rank()) << "Initialize LTS.";
362 initializeClusteredLts(ltsInfo, seissolInstance);
363
364 // init cell materials (needs LTS, to place the material in; this part was translated from
365 // FORTRAN)
366 logInfo(seissol::MPI::mpi.rank()) << "Initialize cell material parameters.";
367 initializeCellMaterial(seissolInstance);
368
369 // init memory layout (needs cell material values to initialize e.g. displacements correctly)
370 logInfo(seissol::MPI::mpi.rank()) << "Initialize Memory layout.";
371 initializeMemoryLayout(ltsInfo, seissolInstance);
372
373 // init cell matrices
374 logInfo(seissol::MPI::mpi.rank()) << "Initialize cell-local matrices.";
375 initializeCellMatrices(ltsInfo, seissolInstance);
376
377 watch.pause();
378 watch.printTime("Model initialized in:");
379
380 // Call the post mesh initialization hook
381 seissol::Modules::callHook<ModuleHook::PostModel>();
382
383 logInfo(seissol::MPI::mpi.rank()) << "End init model.";
384}

Callers

nothing calls this directly

Calls 8

initializeClusteredLtsFunction · 0.85
initializeCellMaterialFunction · 0.85
initializeMemoryLayoutFunction · 0.85
initializeCellMatricesFunction · 0.85
rankMethod · 0.80
pauseMethod · 0.80
printTimeMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected