[cig-commits] commit: Assert that V_Refine only has one component to refine.

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


changeset:   50:7c50513735ca
user:        Walter Landry <wlandry at caltech.edu>
date:        Thu Jan 13 06:46:28 2011 -0800
files:       V_Refine.C
description:
Assert that V_Refine only has one component to refine.


diff -r bd73db81aabc -r 7c50513735ca V_Refine.C
--- a/V_Refine.C	Wed Jan 12 15:58:58 2011 -0800
+++ b/V_Refine.C	Thu Jan 13 06:46:28 2011 -0800
@@ -64,6 +64,7 @@ void SAMRAI::geom::V_Refine::refine(hier
    TBOX_ASSERT(!v.isNull());
    TBOX_ASSERT(!v_fine.isNull());
    TBOX_ASSERT(v->getDepth() == v_fine->getDepth());
+   TBOX_ASSERT(v->getDepth() == 1);
 #endif
 
    hier::Box coarse_box=coarse.getBox();



More information about the CIG-COMMITS mailing list