guard dagmc function call for non dagmc build in plotting

This commit is contained in:
Gavin Ridley 2023-03-20 10:44:09 -04:00
parent a8ed9bde8f
commit abdc9be9a0

View file

@ -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);
}