mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Use Position and Direction in Particle class
This commit is contained in:
parent
477309c917
commit
368f89697d
45 changed files with 423 additions and 487 deletions
|
|
@ -182,10 +182,10 @@ extern "C" void print_particle(Particle* p)
|
|||
<< p->coord_[i].lattice_z << ")\n";
|
||||
}
|
||||
|
||||
std::cout << " xyz = " << p->coord_[i].xyz[0] << " "
|
||||
<< p->coord_[i].xyz[1] << " " << p->coord_[i].xyz[2] << "\n";
|
||||
std::cout << " uvw = " << p->coord_[i].uvw[0] << " "
|
||||
<< p->coord_[i].uvw[1] << " " << p->coord_[i].uvw[2] << "\n";
|
||||
std::cout << " r = (" << p->coord_[i].r.x << ", "
|
||||
<< p->coord_[i].r.y << ", " << p->coord_[i].r.z << ")\n";
|
||||
std::cout << " u = (" << p->coord_[i].u.x << ", "
|
||||
<< p->coord_[i].u.y << ", " << p->coord_[i].u.z << ")\n";
|
||||
}
|
||||
|
||||
// Display miscellaneous info.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue