aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnetter <schnetter@6a3ddf76-46e1-4315-99d9-bc56cac1ef84>2005-04-14 06:58:01 +0000
committerschnetter <schnetter@6a3ddf76-46e1-4315-99d9-bc56cac1ef84>2005-04-14 06:58:01 +0000
commite09bec287832257205fea3655bbd08201ebb30a9 (patch)
tree37fb59fb3e1d36dd817a4323a76e6533958659d7
parent10d25281d7a8801f0453819c7a46588c4866355f (diff)
Decrease the fudge factor which avoids nans again. Rewriting the
equation to make it manifestly non-negative is enough. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinInitialData/IDAnalyticBH/trunk@159 6a3ddf76-46e1-4315-99d9-bc56cac1ef84
-rw-r--r--src/BrillLindquist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BrillLindquist.c b/src/BrillLindquist.c
index 279a40e..eef51b5 100644
--- a/src/BrillLindquist.c
+++ b/src/BrillLindquist.c
@@ -143,7 +143,7 @@ void BrillLindquist(CCTK_ARGUMENTS)
tmp1 = sqrt(SQR(xval+hole_x0[n])
+SQR(yval+hole_y0[n])
+SQR(zval+hole_z0[n])
- +1.0e-10);
+ +1.0e-20);
psi[i] += hole_mass[n]/tmp1*0.5;