diff options
author | schnetter <schnetter@b2a53a04-0f4f-0410-87ed-f9f25ced00cf> | 2004-06-14 12:30:27 +0000 |
---|---|---|
committer | schnetter <schnetter@b2a53a04-0f4f-0410-87ed-f9f25ced00cf> | 2004-06-14 12:30:27 +0000 |
commit | 25c9cb696cfb78529069c2d5df8de87226346226 (patch) | |
tree | d82b66880fb43a8097f2eb543e8088ddffe6b133 | |
parent | 83ecf8359e3ab712561cb9f6da658e1acfcdcbf4 (diff) |
Output ADM mass only once.
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinInitialData/TwoPunctures/trunk@17 b2a53a04-0f4f-0410-87ed-f9f25ced00cf
-rw-r--r-- | src/TwoPunctures.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/TwoPunctures.c b/src/TwoPunctures.c index 3e78ea9..1c792b6 100644 --- a/src/TwoPunctures.c +++ b/src/TwoPunctures.c @@ -49,6 +49,11 @@ TwoPunctures (CCTK_ARGUMENTS) Newton (nvar, n1, n2, n3, v, Newton_tol, Newton_maxit); F_of_v (nvar, n1, n2, n3, v, F, u); + + /* print out ADM mass, eq.: \Delta M_ADM=2*r*u=4*b*V for A=1,B=0,phi=0 */ + admMass = (par_m_plus + par_m_minus + - 4*par_b*PunctEvalAtArbitPosition(v.d0, 1, 0, 0, n1, n2, n3)); + CCTK_VInfo (CCTK_THORNSTRING, "ADM mass is %g\n", admMass); } if (CCTK_EQUALS(grid_setup_method, "Taylor expansion")) @@ -218,10 +223,4 @@ TwoPunctures (CCTK_ARGUMENTS) free_derivs (&u, ntotal); free_derivs (&v, ntotal); } - - - /* print out ADM mass, eq.: \Delta M_ADM=2*r*u=4*B*V for A=1,B=0,phi=0 */ - admMass=par_m_plus+par_m_minus- - 4*par_b*PunctEvalAtArbitPosition(v.d0, 1, 0, 0, n1, n2, n3); - CCTK_VInfo(CCTK_THORNSTRING,"ADM mass is %f\n",admMass); } |