mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Get rid of ERROR_INT and use 0 for "no surface"
This commit is contained in:
parent
492d984525
commit
0fbe024e11
3 changed files with 4 additions and 6 deletions
|
|
@ -191,7 +191,7 @@ extern "C" void print_particle(Particle* p)
|
|||
}
|
||||
|
||||
// Display miscellaneous info.
|
||||
if (p->surface_ != ERROR_INT) {
|
||||
if (p->surface_ != 0) {
|
||||
const Surface& surf {*model::surfaces[std::abs(p->surface_)-1]};
|
||||
std::cout << " Surface = " << std::copysign(surf.id_, p->surface_) << "\n";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue