Skip to content

Commit 0a53528

Browse files
committed
Z4c: fix typo in calculating HC and MtC
1 parent 3c3e5c6 commit 0a53528

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Z4c/src/z4c_vars.hxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,9 +540,9 @@ template <typename T> struct z4c_vars : z4c_vars_noderivs<T> {
540540
ZtC([&](int a) ARITH_INLINE { return (Gamt(a) - Gamtd(a)) / 2; }), //
541541
// (14)
542542
HC(Rsc //
543-
+ sum_symm<3>([&](int x, int y)
543+
- sum_symm<3>([&](int x, int y)
544544
ARITH_INLINE { return At(x, y) * Atu(x, y); }) //
545-
- 2 / T(3) * pow2(Kh + 2 * Theta) //
545+
+ 2 / T(3) * pow2(Kh + 2 * Theta) //
546546
- 16 * T(M_PI) * rho),
547547
// (15)
548548
MtC([&](int a) ARITH_INLINE {
@@ -554,7 +554,7 @@ template <typename T> struct z4c_vars : z4c_vars_noderivs<T> {
554554
return (delta3(a, x) + gammatu(a, x)) *
555555
(dKh(x) + 2 * dTheta(x));
556556
}) //
557-
- 2 / T(3) * sum<3>([&](int x) ARITH_INLINE {
557+
- 3 / T(2) * sum<3>([&](int x) ARITH_INLINE {
558558
return Atu(a, x) * dchi(x) / (1 + chi);
559559
}) //
560560
- 8 * T(M_PI) * sum<3>([&](int x) ARITH_INLINE {

0 commit comments

Comments
 (0)