Skip to content

Commit 474bfdb

Browse files
committed
Fix for setting cumulative slip across earthquake ruptures (first set to zero).
1 parent 7bc6dff commit 474bfdb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libsrc/pylith/faults/FaultCohesiveKin.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ pylith::faults::FaultCohesiveKin::updateAuxiliaryField(pylith::topology::Field*
258258
PYLITH_METHOD_BEGIN;
259259
PYLITH_COMPONENT_DEBUG("updateAuxiliaryField(auxiliaryField="<<auxiliaryField<<", t="<<t<<")");
260260

261+
262+
auxiliaryField->zeroLocal(); // :KLUDGE: :TEMPORARY: Slip field is only auxiliary field, so we can zero entire field.
263+
261264
// Compute slip field at current time step
262265
const srcs_type::const_iterator rupturesEnd = _ruptures.end();
263266
for (srcs_type::iterator r_iter = _ruptures.begin(); r_iter != rupturesEnd; ++r_iter) {

0 commit comments

Comments
 (0)