blob: b19b4a4497165e0f9984e4d76c34f548f0bcb3ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#include <cstring>
#include <fstream>
#include <string>
#include <cinttypes>
#include <sstream>
#include <functional>
#include <iostream>
#include <array>
#include "analysis_tools.hpp"
class pm : public hooks {
private:
unsigned r;
current_info last_cur;
// measurement storage
std::vector<std::vector<uint64_t>> sn; // non-spanning cluster size distribution
std::vector<std::vector<uint64_t>> sN; // non-spanning cluster size distribution
std::list<std::list<unsigned>> sN_tmp; // non-spanning cluster size distribution
std::vector<uint64_t> ss; // minimal spanning cluster size distribution
std::vector<uint64_t> sm; // spanning cluster size distribution
std::vector<uint64_t> sl; // final avalanche size distribution
std::vector<std::vector<uint64_t>> sb; // final avalanche size distribution
std::vector<uint64_t> sd;
std::vector<uint64_t> sr;
public:
std::string model_string;
pm(unsigned Lx, unsigned Ly);
pm(unsigned n, double a);
~pm();
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;
};
|