mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 04:25:29 -04:00
guard dagmc function call for non dagmc build in plotting
This commit is contained in:
parent
a8ed9bde8f
commit
abdc9be9a0
1 changed files with 4 additions and 0 deletions
|
|
@ -1305,8 +1305,12 @@ void ProjectionPlot::create_output() const
|
|||
|
||||
int32_t i_surface = std::abs(p.surface()) - 1;
|
||||
if (i_surface > 0 && model::surfaces[i_surface]->geom_type_ == GeometryType::DAG) {
|
||||
#ifdef DAGMC
|
||||
int32_t i_cell = next_cell(i_surface, p.cell_last(p.n_coord() - 1), p.lowest_coord().universe);
|
||||
inside_cell = i_cell >= 0;
|
||||
#else
|
||||
fatal_error("Not compiled for DAGMC, but somehow you have a DAGCell!");
|
||||
#endif
|
||||
} else {
|
||||
inside_cell = exhaustive_find_cell(p);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue