[cig-commits] commit: Fix scaling for P_MDPI in 3D
Mercurial
hg at geodynamics.org
Sat Apr 16 11:08:42 PDT 2011
changeset: 168:e98a335bb57f
tag: tip
user: Walter Landry <wlandry at caltech.edu>
date: Sat Apr 16 11:07:36 2011 -0700
files: P_MDPI_Refine.C
description:
Fix scaling for P_MDPI in 3D
diff -r 92222e5c5cb9 -r e98a335bb57f P_MDPI_Refine.C
--- a/P_MDPI_Refine.C Sat Apr 16 10:56:28 2011 -0700
+++ b/P_MDPI_Refine.C Sat Apr 16 11:07:36 2011 -0700
@@ -139,7 +139,7 @@ void SAMRAI::geom::P_MDPI_Refine::refine
dRc_dp_total+=dRc_dp_weight;
}
- p_fine(fine)=p(center)*dRc_dp_total/(4*dRc_dp_fine);
+ p_fine(fine)=p(center)*dRc_dp_total/(4*(dim.getValue()-1)*dRc_dp_fine);
}
else
{
More information about the CIG-COMMITS
mailing list