aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrhaas <rhaas@c83d129a-5a75-4d5a-9c4d-ed3a5855bf45>2013-01-14 14:23:24 +0000
committerrhaas <rhaas@c83d129a-5a75-4d5a-9c4d-ed3a5855bf45>2013-01-14 14:23:24 +0000
commitd5c4a808aeefa7fe95cc25cb7648fd7938561b8d (patch)
tree481585aa767d8ee65eb3e3be22e017aca0c841f7 /src
parente6697d32350c5dab48bf59d2b36989e3ef15f21e (diff)
GRHydro: disable in-AH polytrope call by default
From: Roland Haas <rhaas@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEvolve/GRHydro/trunk@452 c83d129a-5a75-4d5a-9c4d-ed3a5855bf45
Diffstat (limited to 'src')
-rw-r--r--src/GRHydro_Con2PrimM.F904
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GRHydro_Con2PrimM.F90 b/src/GRHydro_Con2PrimM.F90
index 2ceef13..0d76503 100644
--- a/src/GRHydro_Con2PrimM.F90
+++ b/src/GRHydro_Con2PrimM.F90
@@ -270,7 +270,7 @@ subroutine Conservative2PrimitiveM(CCTK_ARGUMENTS)
if(evolve_temper.eq.0) then
- if(sdet.ge.sqrtdet_thr) then
+ if(sqrtdet_thr.gt.0d0 .and. sdet.ge.sqrtdet_thr) then
d2 = dens(i,j,k)**2
s2 = uxx*scon(i,j,k,1)**2 + uyy*scon(i,j,k,2)**2 &
+ uzz*scon(i,j,k,3)**2 &
@@ -359,7 +359,7 @@ subroutine Conservative2PrimitiveM(CCTK_ARGUMENTS)
local_pgam=log(xpress(1)/local_K)/log(xrho(1))
sc = local_K*dens(i,j,k)
- if(sdet.ge.sqrtdet_thr) then
+ if(sqrtdet_thr.gt.0d0 .and. sdet.ge.sqrtdet_thr) then
GRHydro_C2P_failed(i,j,k) = 0
rho_tmp = rho(i,j,k)