diff options
author | pants <jaron@kent-dobias.com> | 2016-11-21 18:53:58 -0500 |
---|---|---|
committer | pants <jaron@kent-dobias.com> | 2016-11-21 18:53:58 -0500 |
commit | ae8014ad662e485f54ea578be67daa477b3936f0 (patch) | |
tree | ec26cf51262d20b30ce0135ff899307891e07dbf /src/fracture.h | |
parent | 4407982c990594a90db9184e3de8fba394ee096b (diff) | |
download | fuse_networks-ae8014ad662e485f54ea578be67daa477b3936f0.tar.gz fuse_networks-ae8014ad662e485f54ea578be67daa477b3936f0.tar.bz2 fuse_networks-ae8014ad662e485f54ea578be67daa477b3936f0.zip |
added support for controlling disorder by random initial bond breaking
Diffstat (limited to 'src/fracture.h')
-rw-r--r-- | src/fracture.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fracture.h b/src/fracture.h index 556e1e5..e02bcef 100644 --- a/src/fracture.h +++ b/src/fracture.h @@ -83,6 +83,7 @@ typedef struct { cholmod_sparse *adjacency; cholmod_sparse *dual_adjacency; bool debug_stop; + uint_t num_broken; } net_t; typedef struct { @@ -142,7 +143,7 @@ graph_t *ini_square_network(uint_t width, bound_t boundary, bool side_bounds, void graph_free(graph_t *network, cholmod_common *c); void net_free(net_t *instance, cholmod_common *c); -net_t *net_create(const graph_t *g, double inf, double beta, double notch_len, bool vb, cholmod_common *c); +net_t *net_create(const graph_t *g, double inf, double beta, double notch_len, bool vb, bool perc, cholmod_common *c); graph_t *ini_voro_graph(uint_t L, bound_t boundary, bool use_dual, double *(*genfunc)(uint_t, bound_t, gsl_rng *, uint_t *), |