[cig-commits] commit: Add in some calls to set_boundary to catch corner cases
Mercurial
hg at geodynamics.org
Tue Apr 26 22:18:59 PDT 2011
changeset: 213:d90a0c3c6ec8
tag: tip
user: Walter Landry <wlandry at caltech.edu>
date: Tue Apr 26 22:17:45 2011 -0700
files: src/P_Boundary_Refine/refine.C src/V_Boundary_Refine/refine.C
description:
Add in some calls to set_boundary to catch corner cases
diff -r 0c7c05a016e3 -r d90a0c3c6ec8 src/P_Boundary_Refine/refine.C
--- a/src/P_Boundary_Refine/refine.C Tue Apr 26 22:13:52 2011 -0700
+++ b/src/P_Boundary_Refine/refine.C Tue Apr 26 22:17:45 2011 -0700
@@ -13,6 +13,9 @@ void SAMRAI::geom::P_Boundary_Refine::re
const hier::BoxList& boxes = t_overlap->getDestinationBoxList();
const tbox::Dimension& dimension(getDim());
const int dim(dimension.getValue());
+
+ const int invalid_id(-1);
+ set_boundary(coarse,src_component,invalid_id,true);
for (hier::BoxList::Iterator b(boxes); b; b++)
{
diff -r 0c7c05a016e3 -r d90a0c3c6ec8 src/V_Boundary_Refine/refine.C
--- a/src/V_Boundary_Refine/refine.C Tue Apr 26 22:13:52 2011 -0700
+++ b/src/V_Boundary_Refine/refine.C Tue Apr 26 22:17:45 2011 -0700
@@ -10,6 +10,7 @@
************************************************************************/
#include "V_Boundary_Refine.h"
+#include "set_boundary.h"
void SAMRAI::geom::V_Boundary_Refine::refine(
hier::Patch& fine,
@@ -23,6 +24,9 @@ void SAMRAI::geom::V_Boundary_Refine::re
dynamic_cast<const pdat::SideOverlap *>(&fine_overlap);
TBOX_ASSERT(t_overlap != NULL);
+
+ const int invalid_id(-1);
+ set_boundary(coarse,invalid_id,src_component,true);
for(int axis=0; axis<getDim().getValue(); ++axis)
{
More information about the CIG-COMMITS
mailing list