From ae8014ad662e485f54ea578be67daa477b3936f0 Mon Sep 17 00:00:00 2001 From: pants Date: Mon, 21 Nov 2016 18:53:58 -0500 Subject: added support for controlling disorder by random initial bond breaking --- src/fracture.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/fracture.h') 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 *), -- cgit v1.2.3-70-g09d2