mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
First pass at statepoint_write
This commit is contained in:
parent
f5d972475f
commit
8424a2c850
6 changed files with 108 additions and 11 deletions
|
|
@ -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 {
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue