Skip to content

Commit

Permalink
Fix for setting cumulative slip across earthquake ruptures (first set…
Browse files Browse the repository at this point in the history
… to zero).
  • Loading branch information
baagaard-usgs committed Jun 11, 2019
1 parent 7bc6dff commit 474bfdb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libsrc/pylith/faults/FaultCohesiveKin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ pylith::faults::FaultCohesiveKin::updateAuxiliaryField(pylith::topology::Field*
PYLITH_METHOD_BEGIN;
PYLITH_COMPONENT_DEBUG("updateAuxiliaryField(auxiliaryField="<<auxiliaryField<<", t="<<t<<")");


auxiliaryField->zeroLocal(); // :KLUDGE: :TEMPORARY: Slip field is only auxiliary field, so we can zero entire field.

// Compute slip field at current time step
const srcs_type::const_iterator rupturesEnd = _ruptures.end();
for (srcs_type::iterator r_iter = _ruptures.begin(); r_iter != rupturesEnd; ++r_iter) {
Expand Down

0 comments on commit 474bfdb

Please sign in to comment.