Skip to content

Commit a5ea72e

Browse files
authored
Merge branch 'EinsteinToolkit:main' into main
2 parents 3144b87 + ac18216 commit a5ea72e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Z4c/src/z4c_vars.hxx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,11 +538,14 @@ template <typename T> struct z4c_vars : z4c_vars_noderivs<T> {
538538
// Constraints
539539
// (13)
540540
ZtC([&](int a) ARITH_INLINE { return (Gamt(a) - Gamtd(a)) / 2; }), //
541+
// For the Hamiltonian and momentum constraints, the equations in
542+
// 1212.2901 is incorrect, whereas the one in 0912.2920 is correct,
543+
// as double-checked by Liwei Ji.
541544
// (14)
542545
HC(Rsc //
543-
+ sum_symm<3>([&](int x, int y)
546+
- sum_symm<3>([&](int x, int y)
544547
ARITH_INLINE { return At(x, y) * Atu(x, y); }) //
545-
- 2 / T(3) * pow2(Kh + 2 * Theta) //
548+
+ 2 / T(3) * pow2(Kh + 2 * Theta) //
546549
- 16 * T(M_PI) * rho),
547550
// (15)
548551
MtC([&](int a) ARITH_INLINE {
@@ -554,7 +557,7 @@ template <typename T> struct z4c_vars : z4c_vars_noderivs<T> {
554557
return (delta3(a, x) + gammatu(a, x)) *
555558
(dKh(x) + 2 * dTheta(x));
556559
}) //
557-
- 2 / T(3) * sum<3>([&](int x) ARITH_INLINE {
560+
- 3 / T(2) * sum<3>([&](int x) ARITH_INLINE {
558561
return Atu(a, x) * dchi(x) / (1 + chi);
559562
}) //
560563
- 8 * T(M_PI) * sum<3>([&](int x) ARITH_INLINE {

0 commit comments

Comments
 (0)