From 723245f5d48398529a99b73b42b4a9928df3da23 Mon Sep 17 00:00:00 2001 From: rhaas Date: Wed, 29 May 2013 16:35:30 +0000 Subject: GRHydro: add check for stencil width for MP5 regenerate test that was using wrong stencil before From: Roland Haas git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEvolve/GRHydro/trunk@535 c83d129a-5a75-4d5a-9c4d-ed3a5855bf45 --- src/GRHydro_ParamCheck.F90 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/GRHydro_ParamCheck.F90 b/src/GRHydro_ParamCheck.F90 index b2aaf37..6cf5ad1 100644 --- a/src/GRHydro_ParamCheck.F90 +++ b/src/GRHydro_ParamCheck.F90 @@ -57,6 +57,10 @@ subroutine GRHydro_ParamCheck(CCTK_ARGUMENTS) call CCTK_PARAMWARN("The stencil size must be at least 3 to use WENO reconstruction.") end if + if (CCTK_EQUALS(recon_method,"mp5").and.(GRHydro_stencil < 3)) then + call CCTK_PARAMWARN("The stencil size must be at least 3 to use MP5 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