[cig-commits] [commit] master: Fix time calculation (57feef2)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Wed Oct 8 17:04:54 PDT 2014
Repository : https://github.com/geodynamics/vc
On branch : master
Link : https://github.com/geodynamics/vc/compare/23464fca3efa2b6ad7ee0ce8f60c225b18b49741...e4325192ad1118379f46ba66899cb98143d09e04
>---------------------------------------------------------------
commit 57feef2038ebde10e29697687fa8a9991c18def6
Author: Eric Heien <emheien at ucdavis.edu>
Date: Wed Sep 17 16:26:21 2014 -0700
Fix time calculation
>---------------------------------------------------------------
57feef2038ebde10e29697687fa8a9991c18def6
src/simulation/UpdateBlockStress.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/simulation/UpdateBlockStress.cpp b/src/simulation/UpdateBlockStress.cpp
index 854ee4a..b3743aa 100644
--- a/src/simulation/UpdateBlockStress.cpp
+++ b/src/simulation/UpdateBlockStress.cpp
@@ -132,7 +132,7 @@ SimRequest UpdateBlockStress::run(SimFramework *_sim) {
*/
void UpdateBlockStress::nextAftershock(BlockVal &next_aftershock) {
if (sim->isRootNode() && sim->numAftershocksToProcess() > 0) {
- next_aftershock.val = sim->getYear() - sim->nextAftershockTime();
+ next_aftershock.val = sim->nextAftershockTime() - sim->getYear();
next_aftershock.block_id = UNDEFINED_BLOCK_ID;
} else {
next_aftershock.val = DBL_MAX;
More information about the CIG-COMMITS
mailing list