aboutsummaryrefslogtreecommitdiff
path: root/src/macro/ADM_Spacing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/macro/ADM_Spacing.h')
-rw-r--r--src/macro/ADM_Spacing.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/macro/ADM_Spacing.h b/src/macro/ADM_Spacing.h
new file mode 100644
index 0000000..234d554
--- /dev/null
+++ b/src/macro/ADM_Spacing.h
@@ -0,0 +1,34 @@
+/*@@
+ @header ADM_Spacing.h
+ @date June 2002
+ @author Denis Pollney
+ @desc
+ Calculate various spacing dependent scalars.
+ @enddesc
+@@*/
+
+#ifndef ADM_SPACING_H
+#define ADM_SPACING_H
+
+ dt=cctk_delta_time
+ dx=cctk_delta_space(1)
+ dy=cctk_delta_space(2)
+ dz=cctk_delta_space(3)
+
+ idx=1.d0/dx
+ idy=1.d0/dy
+ idz=1.d0/dz
+
+ i2dx=0.5d0*idx
+ i2dy=0.5d0*idy
+ i2dz=0.5d0*idz
+
+ idxx=idx**2
+ idyy=idy**2
+ idzz=idz**2
+
+ idxy=i2dx*i2dy
+ idxz=i2dx*i2dz
+ idyz=i2dy*i2dz
+
+#endif