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

Method addTimeIntegratedPointSourceFSRM

src/Kernels/PointSourceClusterOnHost.cpp:87–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void PointSourceClusterOnHost::addTimeIntegratedPointSourceFSRM(unsigned source,
88 double from,
89 double to,
90 real dofs[tensor::Q::size()]) {
91 auto o0 = sources_->sampleOffsets[0][source];
92 auto o1 = sources_->sampleOffsets[0][source + 1];
93 auto slip = computeSampleTimeIntegral(from,
94 to,
95 sources_->onsetTime[source],
96 sources_->samplingInterval[source],
97 sources_->sample[0].data() + o0,
98 o1 - o0);
99 kernel::sourceFSRM krnl;
100 krnl.Q = dofs;
101 krnl.mInvJInvPhisAtSources = sources_->mInvJInvPhisAtSources[source].data();
102 krnl.momentFSRM = sources_->tensor[source].data();
103 krnl.stfIntegral = slip;
104#ifdef MULTIPLE_SIMULATIONS
105 krnl.oneSimToMultSim = init::oneSimToMultSim::Values;
106#endif
107 krnl.execute();
108}
109
110} // namespace seissol::kernels

Callers

nothing calls this directly

Calls 3

sizeFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected