diff --git a/src/plot.cpp b/src/plot.cpp index a8047c13a..88593f4a3 100644 --- a/src/plot.cpp +++ b/src/plot.cpp @@ -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); }