[cig-commits] r19696 - short/3D/PyLith/trunk/libsrc/pylith/feassemble
brad at geodynamics.org
brad at geodynamics.org
Tue Feb 28 15:23:20 PST 2012
Author: brad
Date: 2012-02-28 15:23:20 -0800 (Tue, 28 Feb 2012)
New Revision: 19696
Modified:
short/3D/PyLith/trunk/libsrc/pylith/feassemble/ElasticityExplicit.cc
short/3D/PyLith/trunk/libsrc/pylith/feassemble/ElasticityExplicitTet4.cc
short/3D/PyLith/trunk/libsrc/pylith/feassemble/ElasticityExplicitTri3.cc
Log:
Switch to using computed state variables when calculating stresses during explicit time stepping.
Modified: short/3D/PyLith/trunk/libsrc/pylith/feassemble/ElasticityExplicit.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/pylith/feassemble/ElasticityExplicit.cc 2012-02-28 23:22:00 UTC (rev 19695)
+++ short/3D/PyLith/trunk/libsrc/pylith/feassemble/ElasticityExplicit.cc 2012-02-28 23:23:20 UTC (rev 19696)
@@ -357,7 +357,7 @@
calcTotalStrainFn(&strainCell, basisDeriv, dispAdjCell,
numBasis, numQuadPts);
- const scalar_array& stressCell = _material->calcStress(strainCell, true);
+ const scalar_array& stressCell = _material->calcStress(strainCell, false);
#if defined(DETAILED_EVENT_LOGGING)
_logger->eventEnd(stressEvent);
@@ -635,7 +635,7 @@
// Compute B(transpose) * sigma, first computing strains
calcTotalStrainFn(&strainCell, basisDeriv, dispAdjCell,
numBasis, numQuadPts);
- const scalar_array& stressCell = _material->calcStress(strainCell, true);
+ const scalar_array& stressCell = _material->calcStress(strainCell, false);
#if defined(DETAILED_EVENT_LOGGING)
_logger->eventEnd(stressEvent);
Modified: short/3D/PyLith/trunk/libsrc/pylith/feassemble/ElasticityExplicitTet4.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/pylith/feassemble/ElasticityExplicitTet4.cc 2012-02-28 23:22:00 UTC (rev 19695)
+++ short/3D/PyLith/trunk/libsrc/pylith/feassemble/ElasticityExplicitTet4.cc 2012-02-28 23:23:20 UTC (rev 19696)
@@ -378,7 +378,7 @@
d2 * dispAdjCell[3] + b1 * dispAdjCell[2] +
b4 * dispAdjCell[11] + d1 * dispAdjCell[0]) / 2.0;
- const scalar_array& stressCell = _material->calcStress(strainCell, true);
+ const scalar_array& stressCell = _material->calcStress(strainCell, false);
#if defined(DETAILED_EVENT_LOGGING)
PetscLogFlops(196);
@@ -703,7 +703,7 @@
d2 * dispAdjCell[3] + b1 * dispAdjCell[2] +
b4 * dispAdjCell[11] + d1 * dispAdjCell[0]) / 2.0;
- const scalar_array& stressCell = _material->calcStress(strainCell, true);
+ const scalar_array& stressCell = _material->calcStress(strainCell, false);
#if defined(DETAILED_EVENT_LOGGING)
PetscLogFlops(196);
Modified: short/3D/PyLith/trunk/libsrc/pylith/feassemble/ElasticityExplicitTri3.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/pylith/feassemble/ElasticityExplicitTri3.cc 2012-02-28 23:22:00 UTC (rev 19695)
+++ short/3D/PyLith/trunk/libsrc/pylith/feassemble/ElasticityExplicitTri3.cc 2012-02-28 23:23:20 UTC (rev 19696)
@@ -347,7 +347,7 @@
c1*dispAdjCell[2] + b0*dispAdjCell[1] + c0*dispAdjCell[0]) / 2.0;
- const scalar_array& stressCell = _material->calcStress(strainCell, true);
+ const scalar_array& stressCell = _material->calcStress(strainCell, false);
#if defined(DETAILED_EVENT_LOGGING)
PetscLogFlops(34);
@@ -632,7 +632,7 @@
strainCell[2] = (b2*dispAdjCell[5] + c2*dispAdjCell[4] + b1*dispAdjCell[3] +
c1*dispAdjCell[2] + b0*dispAdjCell[1] + c0*dispAdjCell[0]) / 2.0;
- const scalar_array& stressCell = _material->calcStress(strainCell, true);
+ const scalar_array& stressCell = _material->calcStress(strainCell, false);
#if defined(DETAILED_EVENT_LOGGING)
PetscLogFlops(34);
More information about the CIG-COMMITS
mailing list