mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
added particle trace print
This commit is contained in:
parent
b740032aaf
commit
e4f377ebb6
2 changed files with 7 additions and 1 deletions
|
|
@ -584,6 +584,11 @@ void transport()
|
|||
std::cout << "Surface Crossings = " << surface_crossing_queue_length << std::endl;
|
||||
std::cout << "Collisions = " << collision_queue_length << std::endl;
|
||||
*/
|
||||
Particle * p = particles;
|
||||
std::cout << "E = " << p->E_ << " and Position {" <<
|
||||
p->r().x << ", " <<
|
||||
p->r().y << ", " <<
|
||||
p->r().z << "}" << std::endl;
|
||||
int max = std::max({calculate_fuel_xs_queue_length, calculate_nonfuel_xs_queue_length, advance_particle_queue_length, surface_crossing_queue_length, collision_queue_length});
|
||||
//check_energies();
|
||||
if (max == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue