[cig-commits] commit: Make p_rhs have a ghost zone, because the smoothing needs to compute

Mercurial hg at geodynamics.org
Fri Feb 25 14:15:33 PST 2011


changeset:   62:ad8ff79e9bac
user:        Walter Landry <wlandry at caltech.edu>
date:        Fri Jan 14 15:36:03 2011 -0800
files:       FACStokes/FACStokes.C
description:
Make p_rhs have a ghost zone, because the smoothing needs to compute
an updated pressure in the ghost zone in order to properly update
velocity in the regular box.


diff -r 6d81a25ade28 -r ad8ff79e9bac FACStokes/FACStokes.C
--- a/FACStokes/FACStokes.C	Fri Jan 14 15:33:02 2011 -0800
+++ b/FACStokes/FACStokes.C	Fri Jan 14 15:36:03 2011 -0800
@@ -80,7 +80,7 @@ namespace SAMRAI {
       p_rhs(new pdat::CellVariable<double>(dim,object_name
                                            + ":p right hand side"));
     p_rhs_id = vdb->registerVariableAndContext(p_rhs,d_context,
-                                               hier::IntVector(dim, 0));
+                                               hier::IntVector(dim, 1));
 
     tbox::Pointer<pdat::SideVariable<double> >
       v(new pdat::SideVariable<double>(dim, object_name + ":v", 1));



More information about the CIG-COMMITS mailing list