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:
John Tramm 2020-01-13 22:58:19 +00:00
parent 4371279719
commit ad96fa6ffa
6 changed files with 5 additions and 14 deletions

View file

@ -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
//==============================================================================