From 96aabdc245e13ecf9fe116cb7e0323adf06cf7c0 Mon Sep 17 00:00:00 2001 From: Ian Hinder Date: Thu, 28 Oct 2010 14:19:09 +0200 Subject: Omit error when cannot find current map in GenericFD_GetBoundaryWidth --- Auxiliary/Cactus/KrancNumericalTools/GenericFD/src/GenericFD.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Auxiliary') diff --git a/Auxiliary/Cactus/KrancNumericalTools/GenericFD/src/GenericFD.c b/Auxiliary/Cactus/KrancNumericalTools/GenericFD/src/GenericFD.c index 4e1e774..ba83b89 100644 --- a/Auxiliary/Cactus/KrancNumericalTools/GenericFD/src/GenericFD.c +++ b/Auxiliary/Cactus/KrancNumericalTools/GenericFD/src/GenericFD.c @@ -69,8 +69,12 @@ int GenericFD_GetBoundaryWidth(cGH const * restrict const cctkGH) if (CCTK_IsFunctionAliased ("MultiPatch_GetBoundarySpecification")) { int const map = MultiPatch_GetMap (cctkGH); + /* This doesn't make sense in level mode */ if (map < 0) - CCTK_WARN(0, "Could not determine current map"); + { +// CCTK_WARN(1, "Could not determine current map"); + return 0; + } ierr = MultiPatch_GetBoundarySpecification (map, 6, nboundaryzones, is_internal, is_staggered, shiftout); if (ierr != 0) -- cgit v1.2.3