From e08a6676391c01d9dce81e260c783f24c043c1d6 Mon Sep 17 00:00:00 2001 From: diener Date: Fri, 10 Jun 2005 17:05:11 +0000 Subject: Added a boolean parameter "check_grid_sizes" to turn off checking of grid sizes and ghost zones. This is useful for Burkhard, when he wants to use the operators in lower dimensional cases. It could be done in a more selective way, so the checks were done where it makes sense, but this will have to do for now. git-svn-id: https://svn.cct.lsu.edu/repos/numrel/LSUThorns/SummationByParts/trunk@37 f69c4107-0314-4c4f-9ad4-17e986b73f4a --- param.ccl | 5 +++++ schedule.ccl | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/param.ccl b/param.ccl index ebbe4d4..f3f6821 100644 --- a/param.ccl +++ b/param.ccl @@ -36,3 +36,8 @@ STRING vars "List of evolved grid functions that should have dissipation added" { .* :: "Must be a valid list of grid functions" } "" + +# If you use this parameter be careful. You have to know what you are doing... +BOOLEAN check_grid_sizes "Should we check grid sizes and ghost zones" +{ +} "yes" diff --git a/schedule.ccl b/schedule.ccl index a791912..d1c6225 100644 --- a/schedule.ccl +++ b/schedule.ccl @@ -9,10 +9,13 @@ SCHEDULE SBP_SetNormMask AT initial LANG: Fortran } "Setup the mask for the calulcation of the norm" -SCHEDULE SBP_CheckGridSizes AT postinitial +if (check_grid_sizes) { - LANG: Fortran -} "Check grid sizes and ghost zones" + SCHEDULE SBP_CheckGridSizes AT postinitial + { + LANG: Fortran + } "Check grid sizes and ghost zones" +} if (use_dissipation) { -- cgit v1.2.3