aboutsummaryrefslogtreecommitdiff
path: root/src/GRHydro_Prim2Con.F90
diff options
context:
space:
mode:
authorrhaas <rhaas@c83d129a-5a75-4d5a-9c4d-ed3a5855bf45>2012-07-17 17:08:22 +0000
committerrhaas <rhaas@c83d129a-5a75-4d5a-9c4d-ed3a5855bf45>2012-07-17 17:08:22 +0000
commite73dbe74082ece6396de0bb5abeafd440a6c808a (patch)
treec00f0a0739101f5858ce9ad8d136a259329f6d02 /src/GRHydro_Prim2Con.F90
parent2cda1dbb86f3b1d04e18d50bb6821358ea185bd1 (diff)
* ensure consistency in calls to prim2con_hot (fixes issue with my previous patch)
From: Christian Ott <cott@bethe.tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEvolve/GRHydro/trunk@395 c83d129a-5a75-4d5a-9c4d-ed3a5855bf45
Diffstat (limited to 'src/GRHydro_Prim2Con.F90')
-rw-r--r--src/GRHydro_Prim2Con.F909
1 files changed, 5 insertions, 4 deletions
diff --git a/src/GRHydro_Prim2Con.F90 b/src/GRHydro_Prim2Con.F90
index bbbab06..805e486 100644
--- a/src/GRHydro_Prim2Con.F90
+++ b/src/GRHydro_Prim2Con.F90
@@ -305,8 +305,8 @@ subroutine prim2con_hot(handle, GRHydro_reflevel, cctk_iteration, ii, jj, kk, &
! This is a way of recovering even on finer refinement levels:
! Use the average temperature at the interface instead of the
! reconstructed specific internal energy.
- !$OMP CRITICAL
if(GRHydro_eos_hot_prim2con_warn.ne.0) then
+ !$OMP CRITICAL
call CCTK_WARN(1,"EOS error in prim2con_hot: NOW using averaged temp!")
write(warnline,"(i8,3i5,1P10E15.6)") cctk_iteration,ii,jj,kk,x,y,z,r
call CCTK_WARN(1,warnline)
@@ -316,8 +316,8 @@ subroutine prim2con_hot(handle, GRHydro_reflevel, cctk_iteration, ii, jj, kk, &
call CCTK_WARN(1,warnline)
write(warnline,"(A10,i5)") "reflevel: ", GRHydro_reflevel
call CCTK_WARN(1,warnline)
- endif
!$OMP END CRITICAL
+ endif
keytemp=1
temp = temp0
call EOS_Omni_press(handle,keytemp,GRHydro_eos_rf_prec,n,&
@@ -441,8 +441,9 @@ subroutine Primitive2ConservativeCells(CCTK_ARGUMENTS)
det = SPATIAL_DETERMINANT(g11(i,j,k),g12(i,j,k),g13(i,j,k), \
g22(i,j,k),g23(i,j,k),g33(i,j,k))
- call prim2con_hot(GRHydro_eos_handle,GRHydro_reflevel,i,j,k,&
- x(i,j,k),y(i,j,k),z(i,j,k),g11(i,j,k),&
+ call prim2con_hot(GRHydro_eos_handle,GRHydro_reflevel,cctk_iteration,&
+ i,j,k,&
+ x(i,j,k),y(i,j,k),z(i,j,k),r(i,j,k),g11(i,j,k),&
g12(i,j,k),g13(i,j,k),&
g22(i,j,k),g23(i,j,k),g33(i,j,k),&
det, dens(i,j,k),sx(i,j,k),sy(i,j,k),sz(i,j,k),&