mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Set n_batches and n_max_batches through C API
This commit is contained in:
parent
ffe0f0283a
commit
7b4db3279a
4 changed files with 78 additions and 1 deletions
|
|
@ -452,6 +452,16 @@ Functions
|
|||
:return: Return status (negative if an error occurs)
|
||||
:rtype: int
|
||||
|
||||
.. c:function:: int openmc_set_n_batches(int32_t n_batches, int32_t n_max_batches, int32_t add_statepoint_batch)
|
||||
|
||||
Set number of batches and number of max batches
|
||||
|
||||
:param int32_t n_batches: Number of batches to simulate
|
||||
:param int32_t n_batches: Maximum number of batches to simulate (only relevant when triggers are used)
|
||||
:param bool add_statepoint_batch: Whether to add `n_batches` to `settings::statepoint_batch`
|
||||
:return: Return status (negative if an error occurred)
|
||||
:rtype: int
|
||||
|
||||
.. c:function:: int openmc_simulation_finalize()
|
||||
|
||||
Finalize a simulation.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue