diff options
author | rhaas <rhaas@c83d129a-5a75-4d5a-9c4d-ed3a5855bf45> | 2012-06-21 08:55:58 +0000 |
---|---|---|
committer | rhaas <rhaas@c83d129a-5a75-4d5a-9c4d-ed3a5855bf45> | 2012-06-21 08:55:58 +0000 |
commit | 00b2854ef4f66d616f1ad7f8c689fdfe877c9625 (patch) | |
tree | 9c82aaf91f86381fa142b5d2bc41fc5194d053e8 /src/GRHydro_Con2Prim.F90 | |
parent | a20cdf0ff347c4431ba852f37aa73c114045fa74 (diff) |
GRydro: avoid implict SAVE attribute in Con2PrimPolytype
initializing a variable makes it SAVE which is incomaptible with OpenMP.
Also fix some 1-element-array vs. scalar variable type issues.
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEvolve/GRHydro/trunk@364 c83d129a-5a75-4d5a-9c4d-ed3a5855bf45
Diffstat (limited to 'src/GRHydro_Con2Prim.F90')
-rw-r--r-- | src/GRHydro_Con2Prim.F90 | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/src/GRHydro_Con2Prim.F90 b/src/GRHydro_Con2Prim.F90 index 0f8f845..f8c38c8 100644 --- a/src/GRHydro_Con2Prim.F90 +++ b/src/GRHydro_Con2Prim.F90 @@ -349,6 +349,8 @@ subroutine Con2Prim_pt(handle, dens, sx, sy, sz, tau, rho, velx, vely, & uyz, uzz, det, x, y, z, r, epsnegative, GRHydro_rho_min, pmin, epsmin, & GRHydro_reflevel, GRHydro_C2P_failed) + use Con2Prim_fortran_interfaces + implicit none DECLARE_CCTK_PARAMETERS @@ -612,6 +614,8 @@ subroutine Con2Prim_pt_hot(cctk_iteration, ii,jj,kk,handle, dens, & uyz, uzz, det, x, y, z, r, epsnegative, GRHydro_rho_min, pmin, epsmin, & GRHydro_reflevel, GRHydro_C2P_failed, local_perc_ptol) + use Con2Prim_fortran_interfaces + implicit none DECLARE_CCTK_PARAMETERS @@ -1342,6 +1346,8 @@ end subroutine Conservative2PrimitiveBounds subroutine Conservative2PrimitivePolytype(CCTK_ARGUMENTS) + use Con2Prim_fortran_interfaces + implicit none ! save memory when MP is not used @@ -1470,6 +1476,8 @@ subroutine Con2Prim_ptPolytype(handle, dens, sx, sy, sz, tau, rho, & velx, vely, velz, epsilon, press, w_lorentz, uxx, uxy, uxz, uyy, & uyz, uzz, det, x, y, z, r, GRHydro_rho_min, GRHydro_reflevel, GRHydro_C2P_failed) + use Con2Prim_fortran_interfaces + implicit none DECLARE_CCTK_PARAMETERS @@ -1485,14 +1493,10 @@ subroutine Con2Prim_ptPolytype(handle, dens, sx, sy, sz, tau, rho, & character(len=200) warnline ! begin EOS Omni vars - integer :: n = 1 - integer :: keytemp = 0 - integer :: anyerr = 0 - integer :: keyerr(1) = 0 - real*8 :: xpress = 0.0d0 - real*8 :: xeps = 0.0d0 - real*8 :: xtemp = 0.0d0 - real*8 :: xye = 0.0d0 + integer :: n,keytemp,anyerr,keyerr(1) + real*8 :: xpress(1),xeps(1),xtemp(1),xye(1) + n = 1;keytemp = 0;anyerr = 0;keyerr(1) = 0 + xpress = 0.0d0;xeps = 0.0d0;xtemp = 0.0d0;xye = 0.0d0 ! end EOS Omni vars @@ -1516,7 +1520,7 @@ subroutine Con2Prim_ptPolytype(handle, dens, sx, sy, sz, tau, rho, & call EOS_Omni_EpsFromPress(handle,keytemp,GRHydro_eos_rf_prec,n,& rhoold,xeps,xtemp,xye,press,xeps,keyerr,anyerr) - enthalpy = 1.0d0 + xeps + press / rhoold + enthalpy = 1.0d0 + xeps(1) + press / rhoold w_lorentz = sqrt(1.d0 + s2 / ( (udens*enthalpy)**2 )) @@ -1727,6 +1731,8 @@ end subroutine Con2Prim_ptPolytype subroutine Con2PrimBoundsPolytype(CCTK_ARGUMENTS) + use Con2Prim_fortran_interfaces + implicit none ! save memory when MP is not used @@ -1842,6 +1848,8 @@ end subroutine Con2PrimBoundsPolytype subroutine Con2PrimBoundsTracer(CCTK_ARGUMENTS) + use Con2Prim_fortran_interfaces + implicit none ! save memory when MP is not used @@ -1972,6 +1980,8 @@ end subroutine Con2PrimBoundsTracer subroutine Con2Prim_ptTracer(cons_tracer, tracer, dens) + use Con2Prim_fortran_interfaces + implicit none DECLARE_CCTK_PARAMETERS @@ -2000,6 +2010,8 @@ end subroutine Con2Prim_ptTracer subroutine Con2Prim_ptBoundsTracer(cons_tracer, tracer, rho, one_over_w_lorentz, det) + use Con2Prim_fortran_interfaces + implicit none DECLARE_CCTK_PARAMETERS @@ -2014,6 +2026,8 @@ end subroutine Con2Prim_ptBoundsTracer ! subroutines to manage the C2P failure mask subroutine reset_GRHydro_C2P_failed(CCTK_ARGUMENTS) + use Con2Prim_fortran_interfaces + implicit none DECLARE_CCTK_ARGUMENTS @@ -2038,6 +2052,8 @@ end subroutine sync_GRHydro_C2P_failed subroutine check_GRHydro_C2P_failed(CCTK_ARGUMENTS) + use Con2Prim_fortran_interfaces + implicit none ! save memory when MP is not used |