[cig-commits] commit: Fix a bug in P_MDPI_Refine where I was writing outside of valid data
Mercurial
hg at geodynamics.org
Mon May 2 20:47:40 PDT 2011
changeset: 233:221541024793
tag: tip
user: Walter Landry <wlandry at caltech.edu>
date: Mon May 02 20:46:21 2011 -0700
files: src/P_MDPI_Refine.C
description:
Fix a bug in P_MDPI_Refine where I was writing outside of valid data
diff -r 0d53365209f5 -r 221541024793 src/P_MDPI_Refine.C
--- a/src/P_MDPI_Refine.C Mon May 02 20:15:52 2011 -0700
+++ b/src/P_MDPI_Refine.C Mon May 02 20:46:21 2011 -0700
@@ -145,7 +145,8 @@ void SAMRAI::geom::P_MDPI_Refine::refine
for(pdat::CellIterator ii(cell_box); ii; ii++)
{
pdat::CellIndex c_fine(fine+*ii);
- p_fine(c_fine)=boundary_value;
+ if(fine_box.contains(c_fine))
+ p_fine(c_fine)=boundary_value;
}
}
}
More information about the CIG-COMMITS
mailing list