| 343 | } // namespace |
| 344 | |
| 345 | void 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 | } |
nothing calls this directly
no test coverage detected