mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 20:45:35 -04:00
Skipping geometry write, but indicating a DAGMC geometry was used for now.
This commit is contained in:
parent
9a8184513f
commit
ea0b6f2948
2 changed files with 19 additions and 11 deletions
|
|
@ -9,11 +9,15 @@ namespace openmc {
|
|||
extern "C" void
|
||||
write_geometry(hid_t file_id) {
|
||||
|
||||
#ifdef DAGMC
|
||||
if (settings::dagmc) return;
|
||||
#endif
|
||||
|
||||
auto geom_group = create_group(file_id, "geometry");
|
||||
|
||||
#ifdef DAGMC
|
||||
if (settings::dagmc) {
|
||||
write_attribute(geom_group, "cad", 1);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
write_attribute(geom_group, "n_cells", cells.size());
|
||||
write_attribute(geom_group, "n_surfaces", surfaces.size());
|
||||
write_attribute(geom_group, "n_universes", universes.size());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue