aboutsummaryrefslogtreecommitdiff
path: root/src/nuc_eos/nuc_eos.F90
diff options
context:
space:
mode:
Diffstat (limited to 'src/nuc_eos/nuc_eos.F90')
-rw-r--r--src/nuc_eos/nuc_eos.F9015
1 files changed, 10 insertions, 5 deletions
diff --git a/src/nuc_eos/nuc_eos.F90 b/src/nuc_eos/nuc_eos.F90
index 64a78a5..3420ee0 100644
--- a/src/nuc_eos/nuc_eos.F90
+++ b/src/nuc_eos/nuc_eos.F90
@@ -48,11 +48,13 @@ subroutine nuc_eos_full(xrho,xtemp,xye,xenr,xprs,xent,xcs2,xdedt,&
keyerrr = 0
if(xrho.gt.eos_rhomax) then
- call CCTK_WARN(0, "nuc_eos: rho > rhomax")
+ keyerr = 103
+ return
endif
if(xrho.lt.eos_rhomin) then
- call CCTK_WARN (0, "nuc_eos: rho < rhomin")
+ keyerr = 104
+ return
endif
if(xye.gt.eos_yemax) then
@@ -228,7 +230,8 @@ subroutine nuc_eos_short(xrho,xtemp,xye,xenr,xprs,xent,xcs2,xdedt,&
keyerrr = 0
if(xrho.gt.eos_rhomax) then
- call CCTK_WARN (0, "nuc_eos: rho > rhomax")
+ keyerr = 103
+ return
endif
if(xrho.lt.eos_rhomin*1.126d0) then
@@ -351,7 +354,8 @@ subroutine nuc_eos_press_eps(xrho,xtemp,xye,xenr,xprs,&
keyerrt = 0
if(xrho.gt.eos_rhomax) then
- call CCTK_WARN (0, "nuc_eos: rho > rhomax")
+ keyerr = 103
+ return
endif
if(xrho.lt.eos_rhomin*1.126d0) then
@@ -430,7 +434,8 @@ subroutine nuc_eos_dpdr_dpde(xrho,xtemp,xye,xenr,xdpdrhoe,&
keyerrt = 0
if(xrho.gt.eos_rhomax) then
- call CCTK_WARN (0, "nuc_eos: rho > rhomax")
+ keyerr = 103
+ return
endif
if(xrho.lt.eos_rhomin*1.126d0) then