mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Chaning back to id in bounding_box for now.
This commit is contained in:
parent
dda5393c78
commit
694bd0cf15
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue