Skip to content

Commit

Permalink
Merge pull request #1028 from SeisSol/davschneller/fix-bug-introduced…
Browse files Browse the repository at this point in the history
…-by-fix

Fix wrong array indexing (introduced by #1027)
  • Loading branch information
Thomas-Ulrich committed Jan 30, 2024
2 parents f5cd480 + fa1b775 commit 01ae1b1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -113,7 +113,7 @@ void ReceiverBasedOutputBuilder::initBasisFunctions() {
reinterpret_cast<real**>(device::DeviceInstance::getInstance().api->allocGlobMem(
sizeof(real*) * outputData->cellCount));

for (const auto& [arrayIndex, index] : elementIndices) {
for (const auto& [index, arrayIndex] : elementIndices) {
preDofPtr[arrayIndex] = wpLut->lookup(wpDescr->derivatives, index);
assert(preDofPtr[arrayIndex] != nullptr);
}
Expand Down

0 comments on commit 01ae1b1

Please sign in to comment.