diff options
author | rhaas <rhaas@c83d129a-5a75-4d5a-9c4d-ed3a5855bf45> | 2012-06-22 20:37:44 +0000 |
---|---|---|
committer | rhaas <rhaas@c83d129a-5a75-4d5a-9c4d-ed3a5855bf45> | 2012-06-22 20:37:44 +0000 |
commit | 2f4eb45b83794fe075b83ab7c7206c80331fee7d (patch) | |
tree | f6fa27ff0820a48e9d21f4d3cd5f36d5e355caa2 | |
parent | 224688e5ec9176d2b5a86af9c7a8e2fbd998b7c9 (diff) |
Revert "Revert "GRHydro: do not access whichpsidcspeed in ParamCheck unless evolve_MHD""
Ahem. I had reverted the wrong commit. This one was blameless.
This reverts commit 0b5a561872841b50ea32da2b665a04b2984a8c16.
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEvolve/GRHydro/trunk@371 c83d129a-5a75-4d5a-9c4d-ed3a5855bf45
-rw-r--r-- | src/GRHydro_ParamCheck.F90 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/GRHydro_ParamCheck.F90 b/src/GRHydro_ParamCheck.F90 index 132bb7d..e65486e 100644 --- a/src/GRHydro_ParamCheck.F90 +++ b/src/GRHydro_ParamCheck.F90 @@ -126,7 +126,7 @@ subroutine GRHydro_ParamCheck(CCTK_ARGUMENTS) end if - if(clean_divergence.ne.0) then + if(evolve_MHD.ne.0 .and. clean_divergence.ne.0) then if (CCTK_EQUALS(psidcspeed,"char speed")) then whichpsidcspeed = 0 else if (CCTK_EQUALS(psidcspeed,"light speed")) then @@ -138,6 +138,10 @@ subroutine GRHydro_ParamCheck(CCTK_ARGUMENTS) end if end if + if(clean_divergence.eq.0 .and. evolve_MHD.ne.0) then + call CCTK_WARN(1, "You activated divergence cleaning but do not evolve a magnetic field. At best, nothing should happen, be preapered for a segfault otherwise.") + end if + if (Tmunu_damping_radius_min .gt. Tmunu_damping_radius_max) then call CCTK_WARN(0, "Minimum damping radius is greater than maximum damping radius!") end if |