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/gen_laplacian.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gen_laplacian.c') diff --git a/src/gen_laplacian.c b/src/gen_laplacian.c index 73416e4..42134f0 100644 --- a/src/gen_laplacian.c +++ b/src/gen_laplacian.c @@ -208,8 +208,8 @@ cholmod_sparse *gen_laplacian(const net_t *instance, cholmod_common *c, for (uint_t i = 0; i < num_gverts; i++) { - if (acoo[i] == 0) - acoo[i] = 1; + if (instance->marks[i] != instance->marks[network->nv]) + acoo[i]++; } assert(CHOL_F(check_triplet)(temp_m, c)); -- cgit v1.2.3-70-g09d2