Skip to content

Commit

Permalink
Merge branch 'main' into amr
Browse files Browse the repository at this point in the history
  • Loading branch information
jaykalinani committed May 21, 2024
2 parents 9aff901 + f220d75 commit caa1c7c
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 caa1c7c

Please sign in to comment.