From 23682e445ba64452c453346f516f9101761438ba Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Wed, 7 Jun 2017 15:19:29 -0400 Subject: modified lattice options to rename SQUARE to DIAGONAL and add SQUARE --- src/fracture.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/fracture.c') diff --git a/src/fracture.c b/src/fracture.c index c2b2a34..73059ff 100644 --- a/src/fracture.c +++ b/src/fracture.c @@ -103,8 +103,8 @@ int main(int argc, char *argv[]) { lattice_c = 'v'; break; case 1: - lattice = SQUARE_LATTICE; - lattice_c = 's'; + lattice = DIAGONAL_LATTICE; + lattice_c = 'd'; break; case 2: lattice = VORONOI_HYPERUNIFORM_LATTICE; @@ -114,8 +114,12 @@ int main(int argc, char *argv[]) { lattice = TRIANGULAR_LATTICE; lattice_c = 't'; break; + case 4: + lattice = SQUARE_LATTICE; + lattice_c = 's'; + break; default: - printf("lattice specifier must be 0 (VORONOI_LATTICE), 1 (SQUARE_LATTICE), or 2 (VORONOI_HYPERUNIFORM_LATTICE).\n"); + printf("lattice specifier must be 0 (VORONOI_LATTICE), 1 (DIAGONAL_LATTICE), or 2 (VORONOI_HYPERUNIFORM_LATTICE).\n"); exit(EXIT_FAILURE); } break; -- cgit v1.2.3-70-g09d2