[cig-commits] commit: Add an assert to make sure that Edge_Viscosity_Coarsen found the cell viscosity

Mercurial hg at geodynamics.org
Wed Apr 20 16:56:03 PDT 2011


changeset:   179:9a2347e0208a
user:        Walter Landry <wlandry at caltech.edu>
date:        Wed Apr 20 10:30:44 2011 -0700
files:       Edge_Viscosity_Coarsen.C
description:
Add an assert to make sure that Edge_Viscosity_Coarsen found the cell viscosity


diff -r 222c321fda1c -r 9a2347e0208a Edge_Viscosity_Coarsen.C
--- a/Edge_Viscosity_Coarsen.C	Tue Apr 19 13:34:47 2011 -0700
+++ b/Edge_Viscosity_Coarsen.C	Wed Apr 20 10:30:44 2011 -0700
@@ -42,6 +42,7 @@ void SAMRAI::geom::Edge_Viscosity_Coarse
   tbox::Pointer<pdat::CellData<double> >
     cell_viscosity_fine_ptr = fine.getPatchData(cell_viscosity_id);
   pdat::CellData<double> &cell_viscosity_fine(*cell_viscosity_fine_ptr);
+  TBOX_ASSERT(!cell_viscosity_fine_ptr.isNull());
 
   tbox::Pointer<pdat::NodeData<double> > edge_viscosity_fine_2D_ptr;
   tbox::Pointer<pdat::EdgeData<double> > edge_viscosity_fine_3D_ptr;



More information about the CIG-COMMITS mailing list