mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Fix DAGMC builds
This commit is contained in:
parent
0bf2d0c4a9
commit
fdde61540b
1 changed files with 5 additions and 1 deletions
|
|
@ -14,8 +14,12 @@
|
|||
|
||||
namespace openmc {
|
||||
|
||||
namespace model {
|
||||
|
||||
moab::DagMC* DAG;
|
||||
|
||||
} // namespace model
|
||||
|
||||
void load_dagmc_geometry()
|
||||
{
|
||||
if (!model::DAG) {
|
||||
|
|
@ -96,7 +100,7 @@ void load_dagmc_geometry()
|
|||
|
||||
// initialize surface objects
|
||||
int n_surfaces = model::DAG->num_entities(2);
|
||||
surfaces.resize(n_surfaces);
|
||||
model::surfaces.resize(n_surfaces);
|
||||
|
||||
for (int i = 0; i < n_surfaces; i++) {
|
||||
moab::EntityHandle surf_handle = model::DAG->entity_by_index(2, i+1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue