[cig-commits] r22760 - short/3D/PyLith/trunk/unittests/libtests/faults/data

knepley at geodynamics.org knepley at geodynamics.org
Tue Sep 3 11:59:37 PDT 2013


Author: knepley
Date: 2013-09-03 11:59:37 -0700 (Tue, 03 Sep 2013)
New Revision: 22760

Modified:
   short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTet4.cc
   short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTet4.hh
Log:
Extend test for interpolated meshes

Modified: short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTet4.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTet4.cc	2013-09-03 18:59:00 UTC (rev 22759)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTet4.cc	2013-09-03 18:59:37 UTC (rev 22760)
@@ -66,6 +66,12 @@
   5,  4,  6,  9,  8, 10
 };
 
+const int pylith::faults::CohesiveDataTet4::_cellsInt[] = {
+  4,  5,  6,  3,
+ 10,  9,  8,  7,
+  4,  8,  5,  9,  6, 10
+};
+
 const int pylith::faults::CohesiveDataTet4::_materialIds[] = {
   0,  0,
   1
@@ -100,6 +106,7 @@
   vertices = const_cast<PylithScalar*>(_vertices);
   numCorners = const_cast<int*>(_numCorners);
   cells = const_cast<int*>(_cells);
+  cellsInt = const_cast<int*>(_cellsInt);
   materialIds = const_cast<int*>(_materialIds);
   groups = const_cast<int*>(_groups);
   groupSizes = const_cast<int*>(_groupSizes);

Modified: short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTet4.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTet4.hh	2013-09-03 18:59:00 UTC (rev 22759)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTet4.hh	2013-09-03 18:59:37 UTC (rev 22760)
@@ -50,6 +50,7 @@
   static const PylithScalar _vertices[]; ///< Pointer to coordinates of vertices
   static const int _numCorners[]; ///< Number of vertices in cell
   static const int _cells[]; ///< Pointer to indices of vertices in cells
+  static const int _cellsInt[]; ///< Pointer to indices of vertices in interpolated cells
   static const int _materialIds[]; ///< Pointer to cell material identifiers
 
   static const int _groups[]; ///< Groups of points



More information about the CIG-COMMITS mailing list