mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Criticality search method on the Model class (#3569)
This commit is contained in:
parent
a74c1424a8
commit
4c41766611
4 changed files with 326 additions and 9 deletions
|
|
@ -1220,11 +1220,6 @@ extern "C" int openmc_set_n_batches(
|
|||
return OPENMC_E_INVALID_ARGUMENT;
|
||||
}
|
||||
|
||||
if (simulation::current_batch >= n_batches) {
|
||||
set_errmsg("Number of batches must be greater than current batch.");
|
||||
return OPENMC_E_INVALID_ARGUMENT;
|
||||
}
|
||||
|
||||
if (!settings::trigger_on) {
|
||||
// Set n_batches and n_max_batches to same value
|
||||
settings::n_batches = n_batches;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue