[cig-commits] [commit] master: Augment aftershock class (18463e2)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Wed Oct 8 17:04:43 PDT 2014
Repository : https://github.com/geodynamics/vc
On branch : master
Link : https://github.com/geodynamics/vc/compare/23464fca3efa2b6ad7ee0ce8f60c225b18b49741...e4325192ad1118379f46ba66899cb98143d09e04
>---------------------------------------------------------------
commit 18463e204949d80a4d444e2bba46791005fd44db
Author: Eric Heien <emheien at ucdavis.edu>
Date: Wed Sep 17 12:52:34 2014 -0700
Augment aftershock class
>---------------------------------------------------------------
18463e204949d80a4d444e2bba46791005fd44db
src/core/VCEvent.h | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/core/VCEvent.h b/src/core/VCEvent.h
index 63d7de3..29c0226 100644
--- a/src/core/VCEvent.h
+++ b/src/core/VCEvent.h
@@ -131,10 +131,16 @@ class VCGeneralEvent {
float x;
//! "y"-position (km) of earthquake
float y;
+ //! "z"-position (km) of earthquake
+ float z;
- VCGeneralEvent(float _m=0.0, float _t=0.0, float _x=0.0, float _y=0.0) : mag(_m), t(_t), x(_x), y(_y) {};
+ VCGeneralEvent(float _m=0.0, float _t=0.0, float _x=0.0, float _y=0.0, float _z=0.0) : mag(_m), t(_t), x(_x), y(_y), z(_z) {};
void clear(void) {
- mag = t = x = y = 0;
+ mag = t = x = y = z = 0;
+ };
+
+ quakelib::Vec<3> loc(void) const {
+ return quakelib::Vec<3>(x,y,z);
};
// Comparison operator (for sorting)
More information about the CIG-COMMITS
mailing list