mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
added some print statements
This commit is contained in:
parent
c49ce141a7
commit
b740032aaf
2 changed files with 16 additions and 3 deletions
|
|
@ -1087,9 +1087,22 @@ void finalize_generation()
|
|||
for( int i = 0; i < shared_fission_bank_length; i++ )
|
||||
simulation::fission_bank.push_back(shared_fission_bank[i]);
|
||||
shared_fission_bank_length = 0;
|
||||
<<<<<<< HEAD
|
||||
|
||||
//Sorts the fission bank so as to allow for reproducibility
|
||||
std::stable_sort(simulation::fission_bank.begin(), simulation::fission_bank.end());
|
||||
=======
|
||||
#endif
|
||||
// Sorts the fission bank so as to allow for reproducibility
|
||||
//std::sort(simulation::fission_bank.begin(), simulation::fission_bank.end(), bank_site_comparator());
|
||||
//std::sort(simulation::fission_bank.begin(), simulation::fission_bank.end());
|
||||
std::stable_sort(simulation::fission_bank.begin(), simulation::fission_bank.end());
|
||||
std::cout << "Fission bank on rank " << mpi::rank << " is of length " << simulation::fission_bank.size() << std::endl;
|
||||
for (Particle::Bank p : simulation::fission_bank )
|
||||
{
|
||||
std::cout << "E = " << p.E << std::endl;
|
||||
}
|
||||
>>>>>>> added some print statements
|
||||
|
||||
// Distribute fission bank across processors evenly
|
||||
synchronize_bank();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue