Adjusting some geometry checks. Reading surfaces before cells. Combines with other CSG objects so far!

This commit is contained in:
Patrick Shriwise 2020-07-09 00:10:36 -05:00
parent c35c8dae43
commit a736756d9b
2 changed files with 7 additions and 7 deletions

View file

@ -62,8 +62,8 @@ void read_geometry_xml()
pugi::xml_node root = doc.document_element();
// Read surfaces, cells, lattice
read_cells(root);
read_surfaces(root);
read_cells(root);
read_lattices(root);
// Allocate universes, universe cell arrays, and assign base universe

View file

@ -1190,13 +1190,13 @@ void read_surfaces(pugi::xml_node node)
break;
}
}
if (settings::run_mode != RunMode::PLOTTING && !boundary_exists) {
fatal_error("No boundary conditions were applied to any surfaces!");
}
// if (settings::run_mode != RunMode::PLOTTING && !boundary_exists) {
// fatal_error("No boundary conditions were applied to any surfaces!");
// }
if (model::surfaces.size() == 0) {
fatal_error("No surfaces found in geometry.xml!");
}
// if (model::surfaces.size() == 0) {
// fatal_error("No surfaces found in geometry.xml!");
// }
}
void free_memory_surfaces()