From bf691001ab043c7e18d9bdc9521357e773396d1b Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 12 Oct 2019 19:09:53 +0200 Subject: [PATCH] added missing guards --- crystal.cpp | 4 ++++ reg3.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/crystal.cpp b/crystal.cpp index 689e8eaf..9b762dd1 100644 --- a/crystal.cpp +++ b/crystal.cpp @@ -474,6 +474,7 @@ struct hrmap_crystal : hrmap_standard { } auto co = hcoords[h]; + #if MAXMDIM >= 4 if(crystal3()) { auto st = get_canonical(co); auto co1 = co + st[d]; @@ -485,6 +486,7 @@ struct hrmap_crystal : hrmap_standard { return h1; } + #endif if(is_bi(cs, co)) { heptspin hs(h, d); @@ -602,7 +604,9 @@ EX heptagon *get_heptagon_at(coord c) { return crystal_map()->get_heptagon_at(c, EX coord get_coord(heptagon *h) { return crystal_map()->hcoords[h]; } EX ldcoord get_ldcoord(cell *c) { return crystal_map()->get_coord(c); } +#if MAXMDIM >= 4 EX transmatrix get_adj(heptagon *h, int d) { return crystal_map()->adj(h, d); } +#endif bool is_bi(crystal_structure& cs, coord co) { for(int i=0; i