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

Method setPointSourcesForClusters

src/Solver/time_stepping/TimeManager.cpp:356–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356void seissol::time_stepping::TimeManager::setPointSourcesForClusters(
357 std::unordered_map<LayerType, std::vector<seissol::kernels::PointSourceClusterPair>> sourceClusters) {
358 for (auto& cluster : clusters) {
359 auto layerClusters = sourceClusters.find(cluster->getLayerType());
360 if (layerClusters != sourceClusters.end() && cluster->getClusterId() < layerClusters->second.size()) {
361 cluster->setPointSources(std::move(layerClusters->second[cluster->getClusterId()]));
362 }
363 }
364}
365
366void seissol::time_stepping::TimeManager::setReceiverClusters(writer::ReceiverWriter& receiverWriter)
367{

Callers 1

loadSourcesMethod · 0.80

Calls 5

getClusterIdMethod · 0.80
setPointSourcesMethod · 0.80
getLayerTypeMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected