diff options
author | eschnett <eschnett@e296648e-0e4f-0410-bd07-d597d9acff87> | 2012-10-13 02:53:45 +0000 |
---|---|---|
committer | eschnett <eschnett@e296648e-0e4f-0410-bd07-d597d9acff87> | 2012-10-13 02:53:45 +0000 |
commit | 7896b7882fe0095132b76a4096a708acce958b46 (patch) | |
tree | b8c3c6017ee56fe43e3cd1670d00a1d924c2e88d /src/metrics/Schwarzschild_PG.F77 | |
parent | 84cf1675037e1335a4acd8b8cef2ec32a33b79a6 (diff) |
Remove save attributes from several metric routines
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinInitialData/Exact/trunk@280 e296648e-0e4f-0410-bd07-d597d9acff87
Diffstat (limited to 'src/metrics/Schwarzschild_PG.F77')
-rw-r--r-- | src/metrics/Schwarzschild_PG.F77 | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/metrics/Schwarzschild_PG.F77 b/src/metrics/Schwarzschild_PG.F77 index 33563f1..e8f21fb 100644 --- a/src/metrics/Schwarzschild_PG.F77 +++ b/src/metrics/Schwarzschild_PG.F77 @@ -33,13 +33,8 @@ c output arguments CCTK_REAL psi LOGICAL Tmunu_flag -c local static variables - logical firstcall - CCTK_REAL eps, m - data firstcall /.true./ - save firstcall, eps, m - c local variables + CCTK_REAL eps, m CCTK_REAL r, bx, by, bz, b2 C This is a vacuum spacetime with no cosmological constant @@ -47,11 +42,8 @@ C This is a vacuum spacetime with no cosmological constant C Get parameters of the exact solution. - if (firstcall) then - eps = Schwarzschild_PG__epsilon - m = Schwarzschild_PG__mass - firstcall = .false. - end if + eps = Schwarzschild_PG__epsilon + m = Schwarzschild_PG__mass r = max(sqrt(x**2 + y**2 + z**2), eps) bx = sqrt(2.d0 * m / r) * x / r |