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

@ -5,7 +5,8 @@
<run_mode>eigenvalue</run_mode>
<batches>2</batches>
<inactive>1</inactive>
<particles>10</particles>
<particles>1</particles>
<seed>1337</seed>
<!-- The starting source is a uniform distribution over the entire pin
cell. Note that since this is effectively a 2D model, the z coordinates

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