[cig-commits] r22241 - short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/faults
brad at geodynamics.org
brad at geodynamics.org
Wed Jun 12 16:14:34 PDT 2013
Author: brad
Date: 2013-06-12 16:14:33 -0700 (Wed, 12 Jun 2013)
New Revision: 22241
Modified:
short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/faults/FaultCohesiveDyn.cc
Log:
Fixed bug in computing shear Jacobian for friction solve. Need only single term that is rotation invariant.
Modified: short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/faults/FaultCohesiveDyn.cc
===================================================================
--- short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/faults/FaultCohesiveDyn.cc 2013-06-12 23:02:58 UTC (rev 22240)
+++ short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/faults/FaultCohesiveDyn.cc 2013-06-12 23:14:33 UTC (rev 22241)
@@ -1366,7 +1366,6 @@
slipVertex = 0.0;
slipRateVertex = 0.0;
tractionTpdtVertex = 0.0;
- PylithScalar jacobianShearVertex = 0.0;
for (int iDim=0; iDim < spaceDim; ++iDim) {
for (int jDim=0; jDim < spaceDim; ++jDim) {
slipVertex[iDim] += orientationVertex[iDim*spaceDim+jDim] *
@@ -1379,7 +1378,7 @@
// respect to rotation and contains one unique term. Fault
// traction is equal and opposite, so the Jacobian for the change
// in traction with slip requires a factor of 0.5.
- jacobianShearVertex = -0.5 / (areaVertex * (1.0 / jacobianVertexN[0] + 1.0 / jacobianVertexP[0]));
+ const PylithScalar jacobianShearVertex = -0.5 / (areaVertex * (1.0 / jacobianVertexN[0] + 1.0 / jacobianVertexP[0]));
// Get friction properties and state variables.
_friction->retrievePropsStateVars(v_fault);
More information about the CIG-COMMITS
mailing list