Skip to content

Commit

Permalink
Z4c: fix typo in calculating HC and MtC
Browse files Browse the repository at this point in the history
  • Loading branch information
lwJi committed Nov 12, 2024
1 parent 3c3e5c6 commit 0a53528
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Z4c/src/z4c_vars.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -540,9 +540,9 @@ template <typename T> struct z4c_vars : z4c_vars_noderivs<T> {
ZtC([&](int a) ARITH_INLINE { return (Gamt(a) - Gamtd(a)) / 2; }), //
// (14)
HC(Rsc //
+ sum_symm<3>([&](int x, int y)
- sum_symm<3>([&](int x, int y)
ARITH_INLINE { return At(x, y) * Atu(x, y); }) //
- 2 / T(3) * pow2(Kh + 2 * Theta) //
+ 2 / T(3) * pow2(Kh + 2 * Theta) //
- 16 * T(M_PI) * rho),
// (15)
MtC([&](int a) ARITH_INLINE {
Expand All @@ -554,7 +554,7 @@ template <typename T> struct z4c_vars : z4c_vars_noderivs<T> {
return (delta3(a, x) + gammatu(a, x)) *
(dKh(x) + 2 * dTheta(x));
}) //
- 2 / T(3) * sum<3>([&](int x) ARITH_INLINE {
- 3 / T(2) * sum<3>([&](int x) ARITH_INLINE {
return Atu(a, x) * dchi(x) / (1 + chi);
}) //
- 8 * T(M_PI) * sum<3>([&](int x) ARITH_INLINE {
Expand Down

0 comments on commit 0a53528

Please sign in to comment.