Skip to content

Commit 7590f4a

Browse files
authored
Merge pull request #63 from joyal-mathew/main
fix indexing bug
2 parents 29104f8 + 16d189b commit 7590f4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MeshField_Element.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ evaluate(FieldElement &fes, Kokkos::View<Real **> localCoords,
486486
lc[i] = localCoords(pt, i);
487487
const auto val = fes.getValue(ent, lc);
488488
for (int i = 0; i < numComponents; i++)
489-
res(ent, i) = val[i];
489+
res(pt, i) = val[i];
490490
}
491491
});
492492
return res;

0 commit comments

Comments
 (0)