mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Fix off-by-one on LocalCoord.lattice
This commit is contained in:
parent
e3f9446c23
commit
477309c917
4 changed files with 9 additions and 9 deletions
|
|
@ -174,7 +174,7 @@ extern "C" void print_particle(Particle* p)
|
|||
std::cout << " Universe = " << u.id_ << "\n";
|
||||
}
|
||||
|
||||
if (p->coord_[i].lattice != F90_NONE) {
|
||||
if (p->coord_[i].lattice != C_NONE) {
|
||||
const Lattice& lat {*model::lattices[p->coord_[i].lattice]};
|
||||
std::cout << " Lattice = " << lat.id_ << "\n";
|
||||
std::cout << " Lattice position = (" << p->coord_[i].lattice_x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue