[cig-commits] commit: Make smoothing use more sweeps for deeper levels.
Mercurial
hg at geodynamics.org
Fri Feb 25 14:15:03 PST 2011
changeset: 52:277940b2cb1c
user: Walter Landry <wlandry at caltech.edu>
date: Thu Jan 13 12:12:27 2011 -0800
files: StokesFACOps/smoothErrorByRedBlack.C
description:
Make smoothing use more sweeps for deeper levels.
diff -r 3e6b26e0406f -r 277940b2cb1c StokesFACOps/smoothErrorByRedBlack.C
--- a/StokesFACOps/smoothErrorByRedBlack.C Thu Jan 13 06:48:18 2011 -0800
+++ b/StokesFACOps/smoothErrorByRedBlack.C Thu Jan 13 12:12:27 2011 -0800
@@ -97,7 +97,7 @@ void SAMRAI::solv::StokesFACOps::smoothE
* leading to disagreement on whether to continue smoothing.
*/
bool converged = false;
- for (; isweep < num_sweeps && !converged; ++isweep) {
+ for (; isweep < num_sweeps*(1<<(d_ln_max-ln)) && !converged; ++isweep) {
red_maxres = blk_maxres = 0;
for(int rb=0;rb<2;++rb)
@@ -172,7 +172,6 @@ void SAMRAI::solv::StokesFACOps::smoothE
{
(*v)(pdat::SideIndex(center,pdat::SideIndex::X,
pdat::SideIndex::Lower))=0;
-
}
else
{
More information about the CIG-COMMITS
mailing list