diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2019-02-21 14:01:24 -0500 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2019-02-21 14:01:24 -0500 |
commit | d944bcc3df0a8d7a10b755b5858c85e61a835a35 (patch) | |
tree | 611a52a9d51439e9cd39b6ef9bfe35b0e966c38d /src/sample.hpp | |
parent | a408c9884e5267a6fd3c9555b1c94e32df92fee5 (diff) | |
download | fuse_networks-d944bcc3df0a8d7a10b755b5858c85e61a835a35.tar.gz fuse_networks-d944bcc3df0a8d7a10b755b5858c85e61a835a35.tar.bz2 fuse_networks-d944bcc3df0a8d7a10b755b5858c85e61a835a35.zip |
simplified and sped up measurementsn substantially, correlation functions and some distributions again incompatible
Diffstat (limited to 'src/sample.hpp')
-rw-r--r-- | src/sample.hpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/sample.hpp b/src/sample.hpp new file mode 100644 index 0000000..d5d6fe5 --- /dev/null +++ b/src/sample.hpp @@ -0,0 +1,30 @@ + +#include <cstring> +#include <fstream> +#include <string> +#include <cinttypes> +#include <sstream> +#include <functional> +#include <iostream> +#include <array> + +#include <hooks.hpp> +#include <graph.hpp> +#include <network.hpp> + +class sample : public hooks { + // need: + // - interface for turning on and off specific measurements + // + private: + std::ofstream sample_file; + + public: + sample(double, double, double); + ~sample(); + + void pre_fracture(const network &) override; + void bond_broken(const network& net, const current_info& cur, unsigned i) override; + void post_fracture(network &n) override; +}; + |