From 6e9f9a063d0b0c127bdcd9210e544c7c35e08b01 Mon Sep 17 00:00:00 2001 From: rhaas Date: Wed, 29 May 2013 16:35:18 +0000 Subject: GRHydro: add PARAMCHECK for grhydro_stencil for WENO5 WENO5 needs at least a stencil width of 3 From: Roland Haas git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEvolve/GRHydro/trunk@533 c83d129a-5a75-4d5a-9c4d-ed3a5855bf45 --- src/GRHydro_ParamCheck.F90 | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3