mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Only call statepoint_write from C API if cmfd_run
This commit is contained in:
parent
c47f2d1c0a
commit
055842b5cb
6 changed files with 22 additions and 14 deletions
|
|
@ -364,8 +364,10 @@ void finalize_batch()
|
|||
settings::statepoint_batch.insert(simulation::current_batch);
|
||||
}
|
||||
|
||||
// Write out state point if it's been specified for this batch
|
||||
if (contains(settings::statepoint_batch, simulation::current_batch)) {
|
||||
// Write out state point if it's been specified for this batch and is not
|
||||
// a CMFD run instance
|
||||
if (contains(settings::statepoint_batch, simulation::current_batch)
|
||||
&& !settings::cmfd_run) {
|
||||
if (contains(settings::sourcepoint_batch, simulation::current_batch)
|
||||
&& settings::source_write && !settings::source_separate) {
|
||||
bool b = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue