aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorknarf <knarf@e464a08b-0e4f-0410-9853-9e08ab54b382>2003-05-14 12:14:10 +0000
committerknarf <knarf@e464a08b-0e4f-0410-9853-9e08ab54b382>2003-05-14 12:14:10 +0000
commiteda93779bd511dac497cc765aa4287b29636b5cb (patch)
treeab72d10c7ead4debf7903475a0c1e53e06a682cb /src
parenta2a5760af2f1182d894e7613627aa39f415297e3 (diff)
- thorn containing some often used constants as defines
- currently only: c, G and Msolar git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/Constants/trunk@2 e464a08b-0e4f-0410-9853-9e08ab54b382
Diffstat (limited to 'src')
-rw-r--r--src/constants.h38
-rw-r--r--src/make.code.defn0
2 files changed, 38 insertions, 0 deletions
diff --git a/src/constants.h b/src/constants.h
new file mode 100644
index 0000000..8eea227
--- /dev/null
+++ b/src/constants.h
@@ -0,0 +1,38 @@
+#ifndef CONSTANTS_H
+
+#ifdef CCODE
+#define CONSTANT_c_SI 2.99792458e8
+#define CONSTANT_c_cgi 2.99792458e10
+#define CONSTANT_c_C 1.0e0
+#endif
+#ifdef FCODE
+#define CONSTANT_c_SI 2.99792458d8
+#define CONSTANT_c_cgi 2.9979245800d10
+#define CONSTANT_c_C 1.0d0
+#endif
+
+#ifdef CCODE
+#define CONSTANT_G_SI 6.6732e-11
+#define CONSTANT_G_cgi 6.6732e-8
+#define CONSTANT_G_C 1.0e0
+#endif
+#ifdef FCODE
+#define CONSTANT_G_SI 6.6732d-11
+#define CONSTANT_G_cgi 6.6732d-8
+#define CONSTANT_G_C 1.0e0
+#endif
+
+#ifdef CCODE
+#define CONSTANT_Msolar_SI 1.987e30
+#define CONSTANT_Msolar_cgi 1.987e33
+#define CONSTANT_Msolar_C 1.0d0
+#endif
+#ifdef FCODE
+#define CONSTANT_Msolar_SI 1.987d30
+#define CONSTANT_Msolar_cgi 1.987d33
+#define CONSTANT_Msolar_C 1.0d0
+#endif
+
+#define CONSTANT
+
+#endif
diff --git a/src/make.code.defn b/src/make.code.defn
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/make.code.defn