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

Method initFrictionData

src/Initializer/MemoryManager.cpp:969–987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

967
968
969void seissol::initializer::MemoryManager::initFrictionData() {
970 if (m_seissolParams->drParameters.isDynamicRuptureEnabled) {
971
972 m_DRInitializer->initializeFault(m_dynRup.get(), &m_dynRupTree);
973
974#ifdef ACL_DEVICE
975 if (auto* impl = dynamic_cast<dr::friction_law::gpu::FrictionSolverInterface*>(m_FrictionLawDevice.get())) {
976 impl->initSyclQueue();
977
978 LayerMask mask = seissol::initializer::LayerMask(Ghost);
979 auto maxSize = m_dynRupTree.getMaxClusterSize(mask);
980 impl->setMaxClusterSize(maxSize);
981
982 impl->allocateAuxiliaryMemory();
983 impl->copyStaticDataToDevice();
984 }
985#endif // ACL_DEVICE
986 }
987}
988
989void seissol::initializer::MemoryManager::synchronizeTo(seissol::initializer::AllocationPlace place) {
990#ifdef ACL_DEVICE

Callers 1

initializeCellMatricesFunction · 0.80

Calls 7

initSyclQueueMethod · 0.80
getMaxClusterSizeMethod · 0.80
setMaxClusterSizeMethod · 0.80
initializeFaultMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected