mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Moved allocation/freeing of SHM fission bank into the existing allocation/freeing routines for the bank, to simplify things slightly. Also restored the DagMC regression tests.
This commit is contained in:
parent
4371279719
commit
ad96fa6ffa
6 changed files with 5 additions and 14 deletions
|
|
@ -108,7 +108,6 @@ int openmc_simulation_init()
|
|||
// Allocate source bank, and for eigenvalue simulations also allocate the
|
||||
// fission bank
|
||||
allocate_banks();
|
||||
init_shared_fission_bank(simulation::work_per_rank * 3);
|
||||
|
||||
// Allocate tally results arrays if they're not allocated yet
|
||||
for (auto& t : model::tallies) {
|
||||
|
|
@ -192,8 +191,6 @@ int openmc_simulation_finalize()
|
|||
}
|
||||
if (settings::check_overlaps) print_overlap_check();
|
||||
|
||||
free_shared_fission_bank();
|
||||
|
||||
// Reset flags
|
||||
simulation::need_depletion_rx = false;
|
||||
simulation::initialized = false;
|
||||
|
|
@ -302,6 +299,9 @@ void allocate_banks()
|
|||
if (settings::run_mode == RUN_MODE_EIGENVALUE) {
|
||||
simulation::fission_bank.reserve(3*simulation::work_per_rank);
|
||||
}
|
||||
|
||||
// Allocate shared bank
|
||||
init_shared_fission_bank(simulation::work_per_rank * 3);
|
||||
}
|
||||
|
||||
void initialize_batch()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue