aboutsummaryrefslogtreecommitdiff
path: root/src/nuc_eos
diff options
context:
space:
mode:
authorcott <cott@8e189c6b-2ab8-4400-aa02-70a9cfce18b9>2010-11-16 22:45:24 +0000
committercott <cott@8e189c6b-2ab8-4400-aa02-70a9cfce18b9>2010-11-16 22:45:24 +0000
commitd471320fbb24b753f970b611c67fd7d35aff25cc (patch)
tree928523337f366eb32342117a45dee256e0ae8295 /src/nuc_eos
parent44ff1e4799a014f4bac2b2fcb2cc34d75a2c5edc (diff)
* add a parameter controlling a potential energy shift
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/EOS_Omni@21 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
Diffstat (limited to 'src/nuc_eos')
-rw-r--r--src/nuc_eos/readtable.F9012
1 files changed, 11 insertions, 1 deletions
diff --git a/src/nuc_eos/readtable.F90 b/src/nuc_eos/readtable.F90
index 1eee600..a06cff8 100644
--- a/src/nuc_eos/readtable.F90
+++ b/src/nuc_eos/readtable.F90
@@ -1,3 +1,7 @@
+#include "cctk.h"
+#include "cctk_Parameters.h"
+
+
subroutine nuc_eos_readtable(eos_filename)
! This routine reads the table and initializes
! all variables in the module.
@@ -7,6 +11,8 @@ subroutine nuc_eos_readtable(eos_filename)
implicit none
+ DECLARE_CCTK_PARAMETERS;
+
character(*) eos_filename
character(len=100) message
@@ -205,13 +211,17 @@ subroutine nuc_eos_readtable(eos_filename)
call h5dread_f(dset_id, H5T_NATIVE_DOUBLE, energy_shift, dims1, error)
call h5dclose_f(dset_id,error)
accerr=accerr+error
-
+
if(accerr.ne.0) then
stop "Problem reading EOS table file"
endif
call h5fclose_f (file_id,error)
+ if(do_energy_shift.ne.1) then
+ energy_shift = 0.0d0
+ endif
+
! not a good idea to call this function as it will screw recovery
! call h5close_f (error)