diff options
author | rhaas <rhaas@c83d129a-5a75-4d5a-9c4d-ed3a5855bf45> | 2013-05-29 16:35:30 +0000 |
---|---|---|
committer | rhaas <rhaas@c83d129a-5a75-4d5a-9c4d-ed3a5855bf45> | 2013-05-29 16:35:30 +0000 |
commit | 723245f5d48398529a99b73b42b4a9928df3da23 (patch) | |
tree | cde92ebecc49e16617e57707cda0276dfe33c7a6 /src | |
parent | 2fa2d78adbdae10904c3cd32947c2df938d6f3f2 (diff) |
GRHydro: add check for stencil width for MP5
regenerate test that was using wrong stencil before
From: Roland Haas <rhaas@tapir.caltech.edu>
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEvolve/GRHydro/trunk@535 c83d129a-5a75-4d5a-9c4d-ed3a5855bf45
Diffstat (limited to 'src')
-rw-r--r-- | src/GRHydro_ParamCheck.F90 | 4 |
1 files changed, 4 insertions, 0 deletions
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 |