From abdc9be9a00f9f28cfa553581eeaab4dea375c75 Mon Sep 17 00:00:00 2001 From: Gavin Ridley Date: Mon, 20 Mar 2023 10:44:09 -0400 Subject: [PATCH] guard dagmc function call for non dagmc build in plotting --- src/plot.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); }