aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhaas <rhaas@c83d129a-5a75-4d5a-9c4d-ed3a5855bf45>2013-05-29 16:35:18 +0000
committerrhaas <rhaas@c83d129a-5a75-4d5a-9c4d-ed3a5855bf45>2013-05-29 16:35:18 +0000
commit6e9f9a063d0b0c127bdcd9210e544c7c35e08b01 (patch)
tree4f281a2b11f6d3c90420236b5dde48826076a30e
parenta8d6c1d56668352c89da49bc82fc6a06d688052d (diff)
GRHydro: add PARAMCHECK for grhydro_stencil for WENO5
WENO5 needs at least a stencil width of 3 From: Roland Haas <rhaas@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEvolve/GRHydro/trunk@533 c83d129a-5a75-4d5a-9c4d-ed3a5855bf45
-rw-r--r--src/GRHydro_ParamCheck.F904
1 files changed, 4 insertions, 0 deletions
diff --git a/src/GRHydro_ParamCheck.F90 b/src/GRHydro_ParamCheck.F90
index 1891462..b2aaf37 100644
--- a/src/GRHydro_ParamCheck.F90
+++ b/src/GRHydro_ParamCheck.F90
@@ -53,6 +53,10 @@ subroutine GRHydro_ParamCheck(CCTK_ARGUMENTS)
end if
end if
+ if (CCTK_EQUALS(recon_method,"weno").and.(GRHydro_stencil < 3)) then
+ call CCTK_PARAMWARN("The stencil size must be at least 3 to use WENO reconstruction.")
+ end if
+
if (CCTK_EQUALS(recon_method,"eno").and.(GRHydro_stencil < eno_order)) then
call CCTK_PARAMWARN("The stencil size must be at least the order of the reconstruction to use ENO reconstruction")
end if