mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Set maximum bank size inside write_source_bank
This commit is contained in:
parent
09863806df
commit
10e3e83f90
2 changed files with 11 additions and 11 deletions
|
|
@ -389,8 +389,6 @@ void finalize_batch()
|
|||
// Write out surface source if requested.
|
||||
if (settings::surface_source && simulation::current_batch == settings::n_batches) {
|
||||
|
||||
query_surf_src_size();
|
||||
|
||||
auto filename = settings::path_output + "surface_source.h5";
|
||||
write_source_point(filename.c_str(), true); //!!
|
||||
}
|
||||
|
|
@ -558,9 +556,6 @@ void calculate_work()
|
|||
// Number of particles for rank i
|
||||
int64_t work_i = i < remainder ? min_work + 1 : min_work;
|
||||
|
||||
// Set maximum bank size
|
||||
if (mpi::master) simulation::max_bank_size = work_i;
|
||||
|
||||
// Set number of particles
|
||||
if (mpi::rank == i) simulation::work_per_rank = work_i;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue