aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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