Skip to content

Commit

Permalink
Merge pull request #489 from llaniewski/fix/settingzones
Browse files Browse the repository at this point in the history
Adding exception for adding setting zones
  • Loading branch information
llaniewski authored Jan 10, 2024
2 parents 93bf342 + cf2a8a8 commit 65a7321
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,10 @@ class SolverBuilder {
}
void setZones(pugi::xml_node node) { // This works for **both** the Geometry and ArbitraryLattice nodes
for (auto n = node.first_child(); n; n = n.next_sibling()) {
const auto attr = n.attribute("name");
if (attr) insertZone(attr.value());
if (std::string(n.name()) != "Zone") {
const auto attr = n.attribute("name");
if (attr) insertZone(attr.value());
}
}
}
void setSnaps() {
Expand Down

0 comments on commit 65a7321

Please sign in to comment.