From 16924b17b6974f669dd928639c89baa57d8d3f62 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Tue, 6 Nov 2018 17:44:09 -0500 Subject: many changes to measurements, right now halfway through implementing a better, self-consistent record of the crack surface --- src/measurements.hpp | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) (limited to 'src/measurements.hpp') diff --git a/src/measurements.hpp b/src/measurements.hpp index 817481b..4c05d93 100644 --- a/src/measurements.hpp +++ b/src/measurements.hpp @@ -7,19 +7,30 @@ #include #include #include +#include +#include +#include +#include #include #include +#include +#include +#include #include #include #include +struct EdgeProperties { + unsigned int index; +}; + +typedef boost::adjacency_list Graph; + class ma : public hooks { // need: - // - measurements for correlation functions (nice looking?) - // - interface for reading and writing from files (nice looking?) // - interface for turning on and off specific measurements // private: @@ -29,20 +40,28 @@ class ma : public hooks { double *fftw_reverse_out; fftw_plan forward_plan; fftw_plan reverse_plan; - boost::adjacency_list G; + Graph G; + + // measurement storage + std::vector sc; // cluster size distribution + std::vector sa; // avalanche size distribution + std::vector sd; // avalanche size distribution + std::vector sb; // bin size distribution + std::vector Ccc; // cluster-cluster correlations + std::vector Css; // surface-surface correlations + std::vector Caa; // avalanche-avalanche correlations + std::vector Cdd; // damage-damage distribution + uint64_t Nc; + uint64_t Na; public: unsigned int N; unsigned int L; - unsigned int as; double lv; double beta; - std::vector ad; - std::vector cd; - std::vector bin_counts; - std::list> avalanches;; + std::list avalanche; ma(unsigned int N, unsigned int L, double beta); ~ma(); -- cgit v1.2.3-54-g00ecf