diff options
author | Thomas Radke <tradke@aei.mpg.de> | 2005-08-29 15:10:00 +0000 |
---|---|---|
committer | Thomas Radke <tradke@aei.mpg.de> | 2005-08-29 15:10:00 +0000 |
commit | a651ba421f976343a961dcb9f54991e0a7890c21 (patch) | |
tree | 6638d45c383cd9da9e41991dd48b5544d8e55f51 /Carpet/CarpetInterp | |
parent | e6712a24376f833d4dada1a07865e293ec6291d7 (diff) |
CarpetInterp: bugfix in routine which maps points onto components
darcs-hash:20050829151032-776a0-95a8c84bd10d434d1dee4c47894ab2f4276836ae.gz
Diffstat (limited to 'Carpet/CarpetInterp')
-rw-r--r-- | Carpet/CarpetInterp/src/interp.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Carpet/CarpetInterp/src/interp.cc b/Carpet/CarpetInterp/src/interp.cc index 7b8646dee..a078f6a5b 100644 --- a/Carpet/CarpetInterp/src/interp.cc +++ b/Carpet/CarpetInterp/src/interp.cc @@ -758,14 +758,13 @@ namespace CarpetInterp { // Point could not be mapped onto any processor's domain. // Map the point (arbitrarily) to the first component of the // coarsest grid + rl = minrl; + c = 0; + // only warn once if (map_onto_processors) { CCTK_VWarn (CCTK_WARN_PICKY, __LINE__, __FILE__, CCTK_THORNSTRING, "Interpolation point #%d at [%g,%g,%g] is not on " "any grid patch", n, pos[0], pos[1], pos[2]); - rl = minrl; - c = 0; - } else { - assert (0 and "point is not mapped"); } found: assert (rl >= minrl and rl < maxrl); |