From 694bd0cf15efd3467827dbf5247d6afd66a0244a Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Fri, 19 Jul 2019 08:53:52 -0500 Subject: [PATCH] Chaning back to id in bounding_box for now. --- src/geometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/geometry.cpp b/src/geometry.cpp index ea90ba2578..91e2fc245d 100644 --- a/src/geometry.cpp +++ b/src/geometry.cpp @@ -477,7 +477,7 @@ openmc_find_cell(const double* xyz, int32_t* index, int32_t* instance) } extern "C" int -openmc_bounding_box(const char* geom_type, const int32_t index, double* llc, double* urc) { +openmc_bounding_box(const char* geom_type, const int32_t id, double* llc, double* urc) { BoundingBox bbox; @@ -495,7 +495,7 @@ openmc_bounding_box(const char* geom_type, const int32_t index, double* llc, dou const auto& c = model::cells[model::cell_map.at(id)]; bbox = c->bounding_box(); } else if (gtype == "surface") { - if (id == 0) { return OPENMC_E_INVALID_IDY; } + if (id == 0) { return OPENMC_E_INVALID_ID; } const auto& s = model::surfaces[model::surface_map.at(abs(id))]; bbox = s->bounding_box(id > 0); } else {