From 6590154ae3e4ee97e5e1a2792f9f2ebf716ed251 Mon Sep 17 00:00:00 2001 From: pants Date: Wed, 7 Sep 2016 17:30:19 -0400 Subject: created new fracture program which has full capability (support for variable lattices, boundaries, notch or no). to do: get embedded square lattice working, add flag for constant lattices --- src/fracture.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/fracture.h') diff --git a/src/fracture.h b/src/fracture.h index 17ab8fd..cae1a49 100644 --- a/src/fracture.h +++ b/src/fracture.h @@ -29,6 +29,11 @@ #define CINT_MAX INT_MAX #define CHOL_F(x) cholmod_##x +typedef enum lattice_t { + VORONOI_LATTICE, + SQUARE_LATTICE +} lattice_t; + typedef enum bound_t { FREE_BOUND, CYLINDER_BOUND, @@ -177,3 +182,4 @@ void update_break_data(data_t *data, unsigned int last_broke, double strength, d double get_conductivity(net_t *inst, double *current, cholmod_common *c); +graph_t *graph_create(lattice_t lattice, bound_t bound, uint_t L, bool dual, cholmod_common *c); -- cgit v1.2.3-70-g09d2