added particle trace print

This commit is contained in:
John Tramm 2019-11-27 18:18:54 +00:00
parent b740032aaf
commit e4f377ebb6
2 changed files with 7 additions and 1 deletions

View file

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