[cig-commits] r16583 - short/3D/PyLith/trunk/libsrc/faults
brad at geodynamics.org
brad at geodynamics.org
Mon Apr 26 16:39:16 PDT 2010
Author: brad
Date: 2010-04-26 16:39:16 -0700 (Mon, 26 Apr 2010)
New Revision: 16583
Modified:
short/3D/PyLith/trunk/libsrc/faults/FaultCohesiveDyn.cc
short/3D/PyLith/trunk/libsrc/faults/FaultCohesiveDyn.hh
Log:
Renamed method to reflect what it does.
Modified: short/3D/PyLith/trunk/libsrc/faults/FaultCohesiveDyn.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/faults/FaultCohesiveDyn.cc 2010-04-26 22:42:20 UTC (rev 16582)
+++ short/3D/PyLith/trunk/libsrc/faults/FaultCohesiveDyn.cc 2010-04-26 23:39:16 UTC (rev 16583)
@@ -1309,10 +1309,11 @@
const double* areaVertex = areaSection->restrictPoint(v_fault);
assert(0 != areaVertex);
- for (int i = 0; i < fiberDim; ++i)
+ for (int i=0; i < fiberDim; ++i)
tractionsVertex[i] = dispTVertex[i] / areaVertex[0];
- assert(tractionsVertex.size() == tractionsSection->getFiberDimension(v_fault));
+ assert(tractionsVertex.size() ==
+ tractionsSection->getFiberDimension(v_fault));
tractionsSection->updatePoint(v_fault, &tractionsVertex[0]);
} // for
@@ -1327,9 +1328,9 @@
// ----------------------------------------------------------------------
// Compute initial tractions on fault surface.
void
-pylith::faults::FaultCohesiveDyn::_calcInitialTractions(
+pylith::faults::FaultCohesiveDyn::_getInitialTractions(
topology::Field<topology::SubMesh>* tractions)
-{ // _calcInitialTractions
+{ // _getInitialTractions
assert(0 != tractions);
assert(0 != _faultMesh);
assert(0 != _fields);
@@ -1404,7 +1405,7 @@
tractions->view("TRACTIONS");
#endif
-} // _calcInitialTractions
+} // _getInitialTractions
// ----------------------------------------------------------------------
// Update slip rate associated with Lagrange vertex k corresponding
Modified: short/3D/PyLith/trunk/libsrc/faults/FaultCohesiveDyn.hh
===================================================================
--- short/3D/PyLith/trunk/libsrc/faults/FaultCohesiveDyn.hh 2010-04-26 22:42:20 UTC (rev 16582)
+++ short/3D/PyLith/trunk/libsrc/faults/FaultCohesiveDyn.hh 2010-04-26 23:39:16 UTC (rev 16583)
@@ -154,11 +154,11 @@
void _calcTractions(topology::Field<topology::SubMesh>* tractions,
const topology::Field<topology::Mesh>& solution);
- /** Compute initial tractions on fault surface.
+ /** Get initial tractions on fault surface.
*
* @param tractions Field for tractions.
*/
- void _calcInitialTractions(topology::Field<topology::SubMesh>* tractions);
+ void _getInitialTractions(topology::Field<topology::SubMesh>* tractions);
/** Update slip rate associated with Lagrange vertex k corresponding
* to diffential velocity between conventional vertices i and j.
More information about the CIG-COMMITS
mailing list