mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -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
|
|
@ -33,6 +33,8 @@ void free_memory_bank()
|
|||
{
|
||||
simulation::source_bank.clear();
|
||||
simulation::fission_bank.clear();
|
||||
delete[] simulation::shared_fission_bank;
|
||||
simulation::shared_fission_bank_length = 0;
|
||||
}
|
||||
|
||||
void init_shared_fission_bank(int max)
|
||||
|
|
@ -42,12 +44,6 @@ void init_shared_fission_bank(int max)
|
|||
simulation::shared_fission_bank_length = 0;
|
||||
}
|
||||
|
||||
void free_shared_fission_bank(void)
|
||||
{
|
||||
delete[] simulation::shared_fission_bank;
|
||||
simulation::shared_fission_bank_length = 0;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
// C API
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue