[cig-commits] commit: Clean up.

Mercurial hg at geodynamics.org
Fri Feb 25 14:16:12 PST 2011


changeset:   74:31aef82f0c0d
user:        Walter Landry <wlandry at caltech.edu>
date:        Wed Feb 09 06:49:21 2011 -0800
files:       StokesFACOps/set_boundaries.C
description:
Clean up.


diff -r ac5b255663cf -r 31aef82f0c0d StokesFACOps/set_boundaries.C
--- a/StokesFACOps/set_boundaries.C	Wed Feb 09 06:44:45 2011 -0800
+++ b/StokesFACOps/set_boundaries.C	Wed Feb 09 06:49:21 2011 -0800
@@ -52,109 +52,5 @@ void SAMRAI::solv::StokesFACOps::set_bou
     {
       tbox::Pointer<hier::Patch> patch = *pi;
       set_V_boundary(*patch,v_id);
-
-      // tbox::Pointer<pdat::SideData<double> >
-      //   v = patch->getPatchData(v_id);
-
-      // hier::Box pbox=patch->getBox();
-      // tbox::Pointer<geom::CartesianPatchGeometry>
-      //   geom = patch->getPatchGeometry();
-
-      // hier::Box gbox=v->getGhostBox();
-
-      // tbox::plog << "boundary "
-      //            << gbox.lower(0) << " "
-      //            << gbox.upper(0) << " "
-      //            << gbox.lower(1) << " "
-      //            << gbox.upper(1) << " "
-      //            << pbox.lower(0) << " "
-      //            << pbox.upper(0) << " "
-      //            << pbox.lower(1) << " "
-      //            << pbox.upper(1) << " "
-      //            << "\n";
-      // for(int j=gbox.lower(1); j<=gbox.upper(1)+1; ++j)
-      //   for(int i=gbox.lower(0); i<=gbox.upper(0)+1; ++i)
-      //     {
-      //       pdat::CellIndex center(tbox::Dimension(2));
-      //       center[0]=i;
-      //       center[1]=j;
-      //       hier::Index ip(1,0), jp(0,1);
-
-      //       /* vx */
-      //       if(j<=gbox.upper(1))
-      //         {
-      //           /* Set a sentinel value */
-      //           if((i<pbox.lower(0) && geom->getTouchesRegularBoundary(0,0))
-      //              || (i>pbox.upper(0)+1
-      //                  && geom->getTouchesRegularBoundary(0,1)))
-      //             {
-      //               (*v)(pdat::SideIndex(center,pdat::SideIndex::X,
-      //                                    pdat::SideIndex::Lower))=
-      //                 boundary_value;
-      //             }
-      //           /* Set the value so the derivative=0 */
-      //           else if(j<pbox.lower(0)
-      //                   && geom->getTouchesRegularBoundary(1,0))
-      //             {
-      //               (*v)(pdat::SideIndex(center,pdat::SideIndex::X,
-      //                                    pdat::SideIndex::Lower))=
-      //                 (*v)(pdat::SideIndex(center+jp,pdat::SideIndex::X,
-      //                                      pdat::SideIndex::Lower));
-      //             }
-      //           else if(j>pbox.upper(0)
-      //                   && geom->getTouchesRegularBoundary(1,1))
-      //             {
-      //               (*v)(pdat::SideIndex(center,pdat::SideIndex::X,
-      //                                    pdat::SideIndex::Lower))=
-      //                 (*v)(pdat::SideIndex(center-jp,pdat::SideIndex::X,
-      //                                      pdat::SideIndex::Lower));
-      //             }
-      //           // tbox::plog << "set bc vx "
-      //           //            << level->getLevelNumber() << " "
-      //           //            << i << " "
-      //           //            << j << " "
-      //           //            << (*v)(pdat::SideIndex(center,pdat::SideIndex::X,
-      //           //                                    pdat::SideIndex::Lower))
-      //           //            << " "
-      //           //            << "\n";
-      //         }
-      //       /* vy */
-      //       if(i<=gbox.upper(0))
-      //         {
-      //           if((j<pbox.lower(1) && geom->getTouchesRegularBoundary(1,0))
-      //              || (j>pbox.upper(1)+1
-      //                  && geom->getTouchesRegularBoundary(1,1)))
-      //             {
-      //               (*v)(pdat::SideIndex(center,pdat::SideIndex::Y,
-      //                                    pdat::SideIndex::Lower))=
-      //                 boundary_value;
-      //             }
-      //           else if(i<pbox.lower(0)
-      //                   && geom->getTouchesRegularBoundary(0,0))
-      //             {
-      //               (*v)(pdat::SideIndex(center,pdat::SideIndex::Y,
-      //                                    pdat::SideIndex::Lower))=
-      //                 (*v)(pdat::SideIndex(center+ip,pdat::SideIndex::Y,
-      //                                      pdat::SideIndex::Lower));
-      //             }
-      //           else if(i>pbox.upper(0)
-      //                   && geom->getTouchesRegularBoundary(0,1))
-      //             {
-      //               (*v)(pdat::SideIndex(center,pdat::SideIndex::Y,
-      //                                    pdat::SideIndex::Lower))=
-      //                 (*v)(pdat::SideIndex(center-ip,pdat::SideIndex::Y,
-      //                                      pdat::SideIndex::Lower));
-      //             }
-      //           // tbox::plog << "set bc vy "
-      //           //            << level->getLevelNumber() << " "
-      //           //            << i << " "
-      //           //            << j << " "
-      //           //            << (*v)(pdat::SideIndex(center,pdat::SideIndex::Y,
-      //           //                                    pdat::SideIndex::Lower))
-      //           //            << " "
-      //           //            << "\n";
-      //         }
-      //     }
     }
-
 }



More information about the CIG-COMMITS mailing list