First pass at statepoint_write

This commit is contained in:
Shikhar Kumar 2019-03-12 01:54:30 -04:00
parent f5d972475f
commit 8424a2c850
6 changed files with 108 additions and 11 deletions

View file

@ -233,6 +233,16 @@ int openmc_next_batch(int* status)
return 0;
}
bool openmc_is_statepoint_batch() {
using namespace openmc;
using openmc::simulation::current_gen;
if (!simulation::initialized)
return false;
else
return contains(settings::statepoint_batch, simulation::current_batch);
}
namespace openmc {
//==============================================================================