[cig-commits] commit: Fix some places where I accidently created 2D Index's instead of 3D
Mercurial
hg at geodynamics.org
Mon Apr 25 03:38:36 PDT 2011
changeset: 205:83482904f3a2
user: Walter Landry <wlandry at caltech.edu>
date: Mon Apr 25 03:31:55 2011 -0700
files: src/P_Boundary_Refine/Update_P_3D.C src/P_Boundary_Refine/refine.C
description:
Fix some places where I accidently created 2D Index's instead of 3D
diff -r b4f7145a8bcc -r 83482904f3a2 src/P_Boundary_Refine/Update_P_3D.C
--- a/src/P_Boundary_Refine/Update_P_3D.C Mon Apr 25 03:29:52 2011 -0700
+++ b/src/P_Boundary_Refine/Update_P_3D.C Mon Apr 25 03:31:55 2011 -0700
@@ -55,7 +55,7 @@ void SAMRAI::geom::P_Boundary_Refine::Up
SAMRAI::pdat::CellData<double> &p_fine) const
{
pdat::CellIndex center(fine);
- center.coarsen(hier::Index(2,2));
+ center.coarsen(hier::Index(2,2,2));
const double p_mmm=p(center-ip-jp-kp)/64 + (63.0/64)*p(center)
- (3.0/32) * (p(center+ip) + p(center+jp) + p(center+kp))
diff -r b4f7145a8bcc -r 83482904f3a2 src/P_Boundary_Refine/refine.C
--- a/src/P_Boundary_Refine/refine.C Mon Apr 25 03:29:52 2011 -0700
+++ b/src/P_Boundary_Refine/refine.C Mon Apr 25 03:31:55 2011 -0700
@@ -98,7 +98,7 @@ void SAMRAI::geom::P_Boundary_Refine::re
for(int j=p_min[1]; j<=p_max[1]; ++j)
for(int i=p_min[0]; i<=p_max[0]; ++i)
{
- pdat::CellIndex fine(hier::Index(i,j));
+ pdat::CellIndex fine(hier::Index(i,j,k));
switch(boundary_direction)
{
More information about the CIG-COMMITS
mailing list