Skip to content

Commit

Permalink
Merge pull request #42 from lwJi/sum
Browse files Browse the repository at this point in the history
AsterX: Fix a stupid bug (found by Michail) in utils.hxx
  • Loading branch information
lwJi authored May 21, 2024
2 parents 55b8d1a + 2550f90 commit f220d75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AsterX/src/utils.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ CCTK_DEVICE CCTK_HOST CCTK_ATTRIBUTE_ALWAYS_INLINE inline T
calc_contraction(const smat<T, D> &g, const vec<T, D> &v1,
const vec<T, D> &v2) {
// return calc_contraction(v2, calc_contraction(g, v1));
return sum_symm<D>([&](int i, int j)
ARITH_INLINE { return g(i, j) * v1(i) * v2(j); });
return sum<D>([&](int i, int j)
ARITH_INLINE { return g(i, j) * v1(i) * v2(j); });
}

// Contraction for rc case: consider both sides of the face
Expand Down

0 comments on commit f220d75

Please sign in to comment.