arb:: fixed reloading

This commit is contained in:
Zeno Rogue 2019-12-27 22:59:02 +01:00
parent e3e2c664d4
commit c7ec3585ad
2 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,8 @@ struct shape {
struct arbi_tiling {
int order;
vector<shape> shapes;
string name;
string comment;
@ -76,6 +78,7 @@ void load(const string& fname) {
s += c;
}
auto& c = current;
c.order++;
c.shapes.clear();
c.name = unnamed;
c.comment = "";

View File

@ -880,7 +880,7 @@ EX void check_cgi() {
if(arcm::in()) V("ARCM", arcm::current.symbol);
if(arb::in()) V("ARB", arb::current.name);
if(arb::in()) V("ARB", its(arb::current.order));
if(cryst) V("CRYSTAL", its(ginf[gCrystal].sides) + its(ginf[gCrystal].vertex));