[cig-commits] [commit] master: Add stress class get/set functions (2237c04)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Tue Dec 2 13:56:11 PST 2014
Repository : https://github.com/geodynamics/vq
On branch : master
Link : https://github.com/geodynamics/vq/compare/06902a05cf4d70bc94c85d1c195c073d4e74cdad...c935dfd33f870a081b6c01cce97a060ad1cbdbda
>---------------------------------------------------------------
commit 2237c040d33d380a20a8b76a8c7f9f500351be6d
Author: Eric Heien <emheien at ucdavis.edu>
Date: Wed Nov 26 19:27:30 2014 -0800
Add stress class get/set functions
>---------------------------------------------------------------
2237c040d33d380a20a8b76a8c7f9f500351be6d
quakelib/src/QuakeLibIO.h | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/quakelib/src/QuakeLibIO.h b/quakelib/src/QuakeLibIO.h
index 440d52e..22f9cd7 100644
--- a/quakelib/src/QuakeLibIO.h
+++ b/quakelib/src/QuakeLibIO.h
@@ -1033,6 +1033,13 @@ namespace quakelib {
_data.clear();
}
+ void add_stress_entry(UIndex element_id, float shear_stress, float normal_stress) {
+ StressData new_entry;
+ new_entry._element_id = element_id;
+ new_entry._shear_stress = shear_stress;
+ new_entry._normal_stress = normal_stress;
+ _data.push_back(new_entry);
+ }
#ifdef HDF5_FOUND
static std::string hdf5_table_name(void) {
return "stresses";
@@ -1097,6 +1104,28 @@ namespace quakelib {
_stress = new_stresses;
};
+ void setYear(const double year) {
+ _times._year = year;
+ }
+ float getYear(void) const {
+ return _times._year;
+ }
+ void setEventNum(const UIndex event_num) {
+ _times._event_num = event_num;
+ }
+ UIndex getEventNum(void) const {
+ return _times._event_num;
+ }
+ void setSweepNum(const UIndex sweep_num) {
+ _times._sweep_num = sweep_num;
+ }
+ UIndex getSweepNum(void) const {
+ return _times._sweep_num;
+ }
+ void setStartEndRecNums(const unsigned int start_rec, const unsigned int end_rec) {
+ _times._start_rec = start_rec;
+ _times._end_rec = end_rec;
+ }
unsigned int getNumStressRecords(void) const {
return _times._end_rec - _times._start_rec;
};
More information about the CIG-COMMITS
mailing list