aboutsummaryrefslogtreecommitdiff
path: root/src/metrics/Minkowski.F
diff options
context:
space:
mode:
authorknarf <knarf@e296648e-0e4f-0410-bd07-d597d9acff87>2012-12-19 15:12:36 +0000
committerknarf <knarf@e296648e-0e4f-0410-bd07-d597d9acff87>2012-12-19 15:12:36 +0000
commit1c980c2cf1278260feb6bb9b613f8af0b22382ce (patch)
tree2ede115336a741780133ccbceeb823223f939553 /src/metrics/Minkowski.F
parent076e916c60d9a50dbd84932ae4d891977d21989a (diff)
Fix compiler warnings.
Most of them could be fixed by renaming .F77 files to .F Some had to be fixed by explicitly declaring some variables using CCTK_DECLARE() (which also only works for .F, not for .F77) git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinInitialData/Exact/trunk@287 e296648e-0e4f-0410-bd07-d597d9acff87
Diffstat (limited to 'src/metrics/Minkowski.F')
-rw-r--r--src/metrics/Minkowski.F56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/metrics/Minkowski.F b/src/metrics/Minkowski.F
new file mode 100644
index 0000000..f5fe4aa
--- /dev/null
+++ b/src/metrics/Minkowski.F
@@ -0,0 +1,56 @@
+C Minkowski spacetime
+C $Header$
+
+#include "cctk.h"
+
+ subroutine Exact__Minkowski(
+ $ x, y, z, t,
+ $ gdtt, gdtx, gdty, gdtz,
+ $ gdxx, gdyy, gdzz, gdxy, gdyz, gdzx,
+ $ gutt, gutx, guty, gutz,
+ $ guxx, guyy, guzz, guxy, guyz, guzx,
+ $ psi, Tmunu_flag)
+
+ implicit none
+
+c input arguments
+ CCTK_DECLARE(CCTK_REAL, x,)
+ CCTK_DECLARE(CCTK_REAL, y,)
+ CCTK_DECLARE(CCTK_REAL, z,)
+ CCTK_DECLARE(CCTK_REAL, t,)
+
+c output arguments
+ CCTK_REAL gdtt, gdtx, gdty, gdtz,
+ $ gdxx, gdyy, gdzz, gdxy, gdyz, gdzx,
+ $ gutt, gutx, guty, gutz,
+ $ guxx, guyy, guzz, guxy, guyz, guzx
+ CCTK_DECLARE(CCTK_REAL, psi,)
+ LOGICAL Tmunu_flag
+
+C This is a vacuum spacetime with no cosmological constant
+ Tmunu_flag = .false.
+
+ gdtt = -1.d0
+ gdtx = 0.d0
+ gdty = 0.d0
+ gdtz = 0.d0
+ gdxx = 1.d0
+ gdyy = 1.d0
+ gdzz = 1.d0
+ gdxy = 0.d0
+ gdyz = 0.d0
+ gdzx = 0.d0
+
+ gutt = -1.d0
+ gutx = 0.d0
+ guty = 0.d0
+ gutz = 0.d0
+ guxx = 1.d0
+ guyy = 1.d0
+ guzz = 1.d0
+ guxy = 0.d0
+ guyz = 0.d0
+ guzx = 0.d0
+
+ return
+ end