[Debian-astro-commits] [gyoto] 67/221: NumericalMetricLorene: correcting gmunu_up_dr

Thibaut Jean-Claude Paumard thibaut at moszumanska.debian.org
Fri May 22 20:52:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

thibaut pushed a commit to branch master
in repository gyoto.

commit 6f076286911da439a75bb3bd843854464d1a10d6
Author: Frederic <frederic at MacFrederic.local>
Date:   Tue Oct 21 18:35:47 2014 +0200

    NumericalMetricLorene: correcting gmunu_up_dr
---
 lib/NumericalMetricLorene.C | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/NumericalMetricLorene.C b/lib/NumericalMetricLorene.C
index 443f4de..75dfcad 100644
--- a/lib/NumericalMetricLorene.C
+++ b/lib/NumericalMetricLorene.C
@@ -1353,7 +1353,7 @@ double NumericalMetricLorene::gmunu_up_dr(const double pos[3],
 
   if ((mu==0) && (nu==0)) 
     {
-      res = 2.*lapsedr*lapse_valm1;
+      res = 2.*lapsedr*lapse_valm3;
     }else if ((mu==1) && (nu==1))
     {
       res = 0.;
@@ -1375,7 +1375,7 @@ double NumericalMetricLorene::gmunu_up_dr(const double pos[3],
       res = 0.;
     }else if (((mu==0) && (nu==3)) || ((mu==3) && (nu==0)) )
     {
-      res = lapse_valm2*rsinthm1*(-rm1+betapdr-2.*betap*lapsedr*lapse_valm1);
+      res = lapse_valm2*rsinthm1*(-rm1*betap+betapdr-2.*betap*lapsedr*lapse_valm1);
     }
   if (res!=res) throwError("NumericalMetricLorene::gmunu_up_dr is nan!");
   if (res==res+1.) throwError("NumericalMetricLorene::gmunu_up_dr is inf!");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/gyoto.git



More information about the Debian-astro-commits mailing list