[cig-commits] [commit] master: Correct year for events (e4c881a)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Oct 8 17:05:42 PDT 2014


Repository : https://github.com/geodynamics/vc

On branch  : master
Link       : https://github.com/geodynamics/vc/compare/23464fca3efa2b6ad7ee0ce8f60c225b18b49741...e4325192ad1118379f46ba66899cb98143d09e04

>---------------------------------------------------------------

commit e4c881ac19dfc54ac21cf2a34dd5d2d9760cd407
Author: Eric Heien <emheien at ucdavis.edu>
Date:   Thu Sep 25 11:23:04 2014 -0700

    Correct year for events


>---------------------------------------------------------------

e4c881ac19dfc54ac21cf2a34dd5d2d9760cd407
 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 e70ee41..836a63b 100644
--- a/src/simulation/UpdateBlockStress.cpp
+++ b/src/simulation/UpdateBlockStress.cpp
@@ -118,7 +118,7 @@ SimRequest UpdateBlockStress::run(SimFramework *_sim) {
     // Record the current event
     new_event.setEventTriggerOnThisNode(next_event_global.block_id==next_static_fail.block_id);
     new_event.setEventTrigger(next_event_global.block_id);
-    new_event.setEventYear(sim->getYear()+next_event_global.val);
+    new_event.setEventYear(sim->getYear());
     new_event.setEventNumber(sim->getEventCount());
     sim->addEvent(new_event);
 



More information about the CIG-COMMITS mailing list