Criticality search method on the Model class (#3569)

This commit is contained in:
Paul Romano 2025-10-28 11:36:03 -05:00 committed by GitHub
parent a74c1424a8
commit 4c41766611
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 326 additions and 9 deletions

View file

@ -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;