diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-12-20 12:20:19 -0500 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-12-20 12:20:19 -0500 |
commit | 09200a607661f739782a966807d31345485e2c41 (patch) | |
tree | b459bd995c986c87959ffd7ae99c68f9939e2009 /src/measurements.hpp | |
parent | b1b18ae49b0d22d3fbd5146eb6416c8b9e4dd62c (diff) | |
download | fuse_networks-09200a607661f739782a966807d31345485e2c41.tar.gz fuse_networks-09200a607661f739782a966807d31345485e2c41.tar.bz2 fuse_networks-09200a607661f739782a966807d31345485e2c41.zip |
added animation example, and did many fixes to the voronoi system
Diffstat (limited to 'src/measurements.hpp')
-rw-r--r-- | src/measurements.hpp | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/src/measurements.hpp b/src/measurements.hpp index 2bc5bae..685806b 100644 --- a/src/measurements.hpp +++ b/src/measurements.hpp @@ -1,34 +1,18 @@ -#include <vector> -#include <algorithm> -#include <cmath> #include <cstring> -#include <list> #include <fstream> #include <string> #include <cinttypes> #include <sstream> #include <functional> #include <iostream> -#include <valarray> #include <array> -#include <boost/graph/adjacency_list.hpp> -#include <boost/graph/connected_components.hpp> -#include <boost/graph/depth_first_search.hpp> -#include <boost/range/combine.hpp> -#include <boost/foreach.hpp> - #include <fftw3.h> -#include <network.hpp> #include <hooks.hpp> -struct EdgeProperties { - unsigned int index; -}; - -typedef boost::adjacency_list<boost::listS, boost::vecS, boost::undirectedS, boost::no_property, EdgeProperties> Graph; +#include "analysis_tools.hpp" class ma : public hooks { // need: @@ -44,6 +28,8 @@ class ma : public hooks { unsigned int N; unsigned int Lx; unsigned int Ly; + unsigned int Mx; + unsigned int My; double beta; Graph G; @@ -62,15 +48,13 @@ class ma : public hooks { uint64_t Nc; uint64_t Na; - std::ofstream bondfile; - public: long double lv; std::list<std::list<unsigned int>> avalanches; - ma(unsigned int Lx, unsigned int Ly, double beta); + ma(unsigned int Lx, unsigned int Ly, unsigned int Mx, unsigned int My, double beta); ~ma(); void pre_fracture(const network &) override; |