From e41c85fa6679f61da35e9e408aaf14a82f641067 Mon Sep 17 00:00:00 2001 From: cott Date: Sun, 20 Mar 2011 19:46:09 +0000 Subject: * improve error handling in nuc_eos a bit. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@38 8e189c6b-2ab8-4400-aa02-70a9cfce18b9 --- src/nuc_eos/nuc_eos.F90 | 15 ++++++++++----- 1 file 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 -- cgit v1.2.3