mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Adjusting some geometry checks. Reading surfaces before cells. Combines with other CSG objects so far!
This commit is contained in:
parent
c35c8dae43
commit
a736756d9b
2 changed files with 7 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue