Skip to content

Commit

Permalink
Merge pull request #958 from SeisSol/davschneller/point-source-patch
Browse files Browse the repository at this point in the history
Replace `NUMBER_OF_QUANTITIES` by the correct dimension
  • Loading branch information
krenzland committed Sep 20, 2023
2 parents 6aecb20 + b245525 commit 1579dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SourceTerm/Manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ auto seissol::sourceterm::Manager::loadSourcesFromFSRM(char const* fileName,
fsrm.rakes[fsrmIndex],
sources.tensor[clusterSource]);

for (unsigned i = 0; i < NUMBER_OF_QUANTITIES; ++i) {
for (unsigned i = 0; i < PointSources::TensorSize; ++i) {
sources.tensor[clusterSource][i] *= fsrm.areas[fsrmIndex];
}
#ifndef USE_POROELASTIC
Expand Down

0 comments on commit 1579dfa

Please sign in to comment.