Fix off-by-one on LocalCoord.lattice

This commit is contained in:
Paul Romano 2019-03-01 07:10:54 -06:00
parent e3f9446c23
commit 477309c917
4 changed files with 9 additions and 9 deletions

View file

@ -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