From 1ebd27541834a0a213349c51f9f9d5da82d03fe1 Mon Sep 17 00:00:00 2001 From: eschnett Date: Sat, 8 Oct 2011 14:00:25 +0000 Subject: Avoid nans on the symmetry axis git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Cartoon2D/trunk@124 eec4d7dc-71c2-46d6-addf-10296150bf52 --- src/Cartoon2DBC.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cartoon2DBC.c b/src/Cartoon2DBC.c index 027e9f7..753b1db 100644 --- a/src/Cartoon2DBC.c +++ b/src/Cartoon2DBC.c @@ -181,7 +181,7 @@ int BndCartoon2DVI(const cGH *cctkGH, int tensortype, int prolongtype, int vi) for (i = -s; i < lnx; i++) { #else for (i = 0; i < lnx; i++) - if (! (i > s && jj == 0)) { + if (! (i >= s && jj == 0)) { #endif /* index into linear memory */ -- cgit v1.2.3