mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
added some print statements
This commit is contained in:
parent
c49ce141a7
commit
b740032aaf
2 changed files with 16 additions and 3 deletions
|
|
@ -3,9 +3,9 @@
|
|||
|
||||
<!-- Define how many particles to run and for how many batches -->
|
||||
<run_mode>eigenvalue</run_mode>
|
||||
<batches>100</batches>
|
||||
<inactive>10</inactive>
|
||||
<particles>1000</particles>
|
||||
<batches>2</batches>
|
||||
<inactive>1</inactive>
|
||||
<particles>10</particles>
|
||||
|
||||
<!-- The starting source is a uniform distribution over the entire pin
|
||||
cell. Note that since this is effectively a 2D model, the z coordinates
|
||||
|
|
|
|||
|
|
@ -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