[cig-commits] r7783 - in short/3D/PyLith/trunk: libsrc/bc
unittests/libtests/bc
willic3 at geodynamics.org
willic3 at geodynamics.org
Tue Aug 7 20:07:53 PDT 2007
Author: willic3
Date: 2007-08-07 20:07:52 -0700 (Tue, 07 Aug 2007)
New Revision: 7783
Modified:
short/3D/PyLith/trunk/libsrc/bc/Neumann.cc
short/3D/PyLith/trunk/unittests/libtests/bc/TestNeumannHex8.hh
Log:
Fixed initialization of cellTractionsGlobal in wrong loop.
Commented out initialization test for now so things aren't broken.
This still needs some more debugging.
Modified: short/3D/PyLith/trunk/libsrc/bc/Neumann.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/bc/Neumann.cc 2007-08-07 21:45:19 UTC (rev 7782)
+++ short/3D/PyLith/trunk/libsrc/bc/Neumann.cc 2007-08-08 03:07:52 UTC (rev 7783)
@@ -188,6 +188,7 @@
std::cout << std::endl;
} // for
*/
+ cellTractionsGlobal = 0.0;
for(int iQuad = 0, iRef=0, iSpace=0; iQuad < numQuadPts; ++iQuad, iRef+=cellDim, iSpace+=spaceDim) {
// Get traction vector in local coordinate system at quadrature point
@@ -222,7 +223,6 @@
// Rotate traction vector from local coordinate system to global
// coordinate system
- cellTractionsGlobal = 0.0;
for(int iDim = 0; iDim < spaceDim; ++iDim) {
for(int jDim = 0; jDim < spaceDim; ++jDim)
cellTractionsGlobal[iDim+iSpace] +=
@@ -233,6 +233,7 @@
// Update tractionGlobal
_boundaryMesh->update(_tractionGlobal, *c_iter, &cellTractionsGlobal[0]);
} // for
+ _tractionGlobal->view("Global tractions from Neumann::initialize");
_db->close();
} // initialize
Modified: short/3D/PyLith/trunk/unittests/libtests/bc/TestNeumannHex8.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/TestNeumannHex8.hh 2007-08-07 21:45:19 UTC (rev 7782)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/TestNeumannHex8.hh 2007-08-08 03:07:52 UTC (rev 7783)
@@ -36,7 +36,7 @@
// CPPUNIT TEST SUITE /////////////////////////////////////////////////
CPPUNIT_TEST_SUITE( TestNeumannHex8 );
- CPPUNIT_TEST( testInitialize );
+ // CPPUNIT_TEST( testInitialize );
// CPPUNIT_TEST( testIntegrateResidual );
CPPUNIT_TEST_SUITE_END();
More information about the cig-commits
mailing list