summaryrefslogtreecommitdiff
path: root/src/EOS_GeneralHybrid_Startup.c
diff options
context:
space:
mode:
authorknarf <knarf@0a999221-0efe-4d2d-b270-2ec6803ffb49>2009-12-02 22:22:52 +0000
committerknarf <knarf@0a999221-0efe-4d2d-b270-2ec6803ffb49>2009-12-02 22:22:52 +0000
commit009e6b85882170b646ee8ef895b82d77c5ca2505 (patch)
treee4ddc81c8871e16a00368ceb1952e1fc4b37f68f /src/EOS_GeneralHybrid_Startup.c
parent04d9e2af959e28cad9f8fea508e35c393228a265 (diff)
thorns for general eos interface (moved from Whisky_Dev repositories)
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOSG_Hybrid/trunk@2 0a999221-0efe-4d2d-b270-2ec6803ffb49
Diffstat (limited to 'src/EOS_GeneralHybrid_Startup.c')
-rwxr-xr-xsrc/EOS_GeneralHybrid_Startup.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/EOS_GeneralHybrid_Startup.c b/src/EOS_GeneralHybrid_Startup.c
new file mode 100755
index 0000000..034aa11
--- /dev/null
+++ b/src/EOS_GeneralHybrid_Startup.c
@@ -0,0 +1,42 @@
+#include "cctk.h"
+#include "cctk_Arguments.h"
+#include "cctk_Parameters.h"
+
+#include "util_String.h"
+#include "util_ErrorCodes.h"
+#include "util_Table.h"
+
+#include "EOS_GeneralHybrid.h"
+
+void EOS_GeneralHybrid_Startup (CCTK_ARGUMENTS)
+{
+ DECLARE_CCTK_ARGUMENTS;
+ DECLARE_CCTK_PARAMETERS;
+
+ CCTK_INT ierr, table_handle;
+
+ table_handle = Util_TableCreate(UTIL_TABLE_FLAGS_CASE_INSENSITIVE);
+
+ Util_TableSetInt(table_handle,
+ N_INDEPS,
+ "N independent variables");
+ Util_TableSetInt(table_handle,
+ N_DEPS,
+ "N dependent variables");
+ Util_TableSetString(table_handle,
+ "Rho SpecificInternalEnergy",
+ "Independent variable names");
+ Util_TableSetString(table_handle,
+ "Pressure DPressureDRho DPressureDSpecificInternalEnergy c_s^2",
+ "Dependent variable names");
+ Util_TableSetString(table_handle,
+ "Hybrid",
+ "EOS Name");
+
+ ierr = EOS_RegisterCall(table_handle,
+ EOS_GeneralHybrid_SetArray);
+ if (ierr)
+ {
+ CCTK_WARN(0, "Failed to set up EOS_GeneralHybrid call");
+ }
+}