Skip to content

Commit ac18216

Browse files
authored
Merge pull request #47 from EinsteinToolkit/lwji/constraints
2 parents 3c3e5c6 + 534fba8 commit ac18216

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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)