• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openmc-dev / openmc / 9789289404

04 Jul 2024 06:02AM UTC coverage: 84.763% (-0.003%) from 84.766%
9789289404

Pull #3070

github

web-flow
Merge d5ce44080 into 1b22dd28d
Pull Request #3070: Survival Normalization 0.15.1

8 of 13 new or added lines in 4 files covered. (61.54%)

1 existing line in 1 file now uncovered.

49186 of 58028 relevant lines covered (84.76%)

31248475.07 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

78.04
/src/settings.cpp
1
#include "openmc/settings.h"
2

3
#include <cmath>  // for ceil, pow
4
#include <limits> // for numeric_limits
5
#include <string>
6

7
#include <fmt/core.h>
8
#ifdef _OPENMP
9
#include <omp.h>
10
#endif
11

12
#include "openmc/capi.h"
13
#include "openmc/constants.h"
14
#include "openmc/container_util.h"
15
#include "openmc/distribution.h"
16
#include "openmc/distribution_multi.h"
17
#include "openmc/distribution_spatial.h"
18
#include "openmc/eigenvalue.h"
19
#include "openmc/error.h"
20
#include "openmc/file_utils.h"
21
#include "openmc/mcpl_interface.h"
22
#include "openmc/mesh.h"
23
#include "openmc/message_passing.h"
24
#include "openmc/output.h"
25
#include "openmc/plot.h"
26
#include "openmc/random_lcg.h"
27
#include "openmc/random_ray/random_ray.h"
28
#include "openmc/simulation.h"
29
#include "openmc/source.h"
30
#include "openmc/string_utils.h"
31
#include "openmc/tallies/trigger.h"
32
#include "openmc/volume_calc.h"
33
#include "openmc/weight_windows.h"
34
#include "openmc/xml_interface.h"
35

36
namespace openmc {
37

38
//==============================================================================
39
// Global variables
40
//==============================================================================
41

42
namespace settings {
43

44
// Default values for boolean flags
45
bool assume_separate {false};
46
bool check_overlaps {false};
47
bool cmfd_run {false};
48
bool confidence_intervals {false};
49
bool create_delayed_neutrons {true};
50
bool create_fission_neutrons {true};
51
bool delayed_photon_scaling {true};
52
bool entropy_on {false};
53
bool event_based {false};
54
bool legendre_to_tabular {true};
55
bool material_cell_offsets {true};
56
bool output_summary {true};
57
bool output_tallies {true};
58
bool particle_restart_run {false};
59
bool photon_transport {false};
60
bool reduce_tallies {true};
61
bool res_scat_on {false};
62
bool restart_run {false};
63
bool run_CE {true};
64
bool source_latest {false};
65
bool source_separate {false};
66
bool source_write {true};
67
bool source_mcpl_write {false};
68
bool surf_source_write {false};
69
bool surf_mcpl_write {false};
70
bool surf_source_read {false};
71
bool survival_biasing {false};
72
bool survival_normalization {false};
73
bool temperature_multipole {false};
74
bool trigger_on {false};
75
bool trigger_predict {false};
76
bool ufs_on {false};
77
bool urr_ptables_on {true};
78
bool weight_windows_on {false};
79
bool weight_window_checkpoint_surface {false};
80
bool weight_window_checkpoint_collision {true};
81
bool write_all_tracks {false};
82
bool write_initial_source {false};
83

84
std::string path_cross_sections;
85
std::string path_input;
86
std::string path_output;
87
std::string path_particle_restart;
88
std::string path_sourcepoint;
89
std::string path_statepoint;
90
const char* path_statepoint_c {path_statepoint.c_str()};
91
std::string weight_windows_file;
92

93
int32_t n_inactive {0};
94
int32_t max_lost_particles {10};
95
double rel_max_lost_particles {1.0e-6};
96
int32_t max_write_lost_particles {-1};
97
int32_t gen_per_batch {1};
98
int64_t n_particles {-1};
99

100
int64_t max_particles_in_flight {100000};
101
int max_particle_events {1000000};
102

103
ElectronTreatment electron_treatment {ElectronTreatment::TTB};
104
array<double, 4> energy_cutoff {0.0, 1000.0, 0.0, 0.0};
105
array<double, 4> time_cutoff {INFTY, INFTY, INFTY, INFTY};
106
int legendre_to_tabular_points {C_NONE};
107
int max_order {0};
108
int n_log_bins {8000};
109
int n_batches;
110
int n_max_batches;
111
int max_history_splits {10'000'000};
112
int max_tracks {1000};
113
ResScatMethod res_scat_method {ResScatMethod::rvs};
114
double res_scat_energy_min {0.01};
115
double res_scat_energy_max {1000.0};
116
vector<std::string> res_scat_nuclides;
117
RunMode run_mode {RunMode::UNSET};
118
SolverType solver_type {SolverType::MONTE_CARLO};
119
std::unordered_set<int> sourcepoint_batch;
120
std::unordered_set<int> statepoint_batch;
121
std::unordered_set<int> source_write_surf_id;
122
int64_t max_surface_particles;
123
int64_t ssw_cell_id {C_NONE};
124
SSWCellType ssw_cell_type {SSWCellType::None};
125
TemperatureMethod temperature_method {TemperatureMethod::NEAREST};
126
double temperature_tolerance {10.0};
127
double temperature_default {293.6};
128
array<double, 2> temperature_range {0.0, 0.0};
129
int trace_batch;
130
int trace_gen;
131
int64_t trace_particle;
132
vector<array<int, 3>> track_identifiers;
133
int trigger_batch_interval {1};
134
int verbosity {7};
135
double weight_cutoff {0.25};
136
double weight_survive {1.0};
137

138
} // namespace settings
139

140
//==============================================================================
141
// Functions
142
//==============================================================================
143

144
void get_run_parameters(pugi::xml_node node_base)
5,912✔
145
{
146
  using namespace settings;
147
  using namespace pugi;
148

149
  // Check number of particles
150
  if (!check_for_node(node_base, "particles")) {
5,912✔
151
    fatal_error("Need to specify number of particles.");
×
152
  }
153

154
  // Get number of particles if it wasn't specified as a command-line argument
155
  if (n_particles == -1) {
5,912✔
156
    n_particles = std::stoll(get_node_value(node_base, "particles"));
5,912✔
157
  }
158

159
  // Get maximum number of in flight particles for event-based mode
160
  if (check_for_node(node_base, "max_particles_in_flight")) {
5,912✔
161
    max_particles_in_flight =
×
162
      std::stoll(get_node_value(node_base, "max_particles_in_flight"));
×
163
  }
164

165
  // Get maximum number of events allowed per particle
166
  if (check_for_node(node_base, "max_particle_events")) {
5,912✔
167
    max_particle_events =
×
168
      std::stoll(get_node_value(node_base, "max_particle_events"));
×
169
  }
170

171
  // Get number of basic batches
172
  if (check_for_node(node_base, "batches")) {
5,912✔
173
    n_batches = std::stoi(get_node_value(node_base, "batches"));
5,912✔
174
  }
175
  if (!trigger_on)
5,912✔
176
    n_max_batches = n_batches;
5,767✔
177

178
  // Get max number of lost particles
179
  if (check_for_node(node_base, "max_lost_particles")) {
5,912✔
180
    max_lost_particles =
17✔
181
      std::stoi(get_node_value(node_base, "max_lost_particles"));
17✔
182
  }
183

184
  // Get relative number of lost particles
185
  if (check_for_node(node_base, "rel_max_lost_particles")) {
5,912✔
186
    rel_max_lost_particles =
×
187
      std::stod(get_node_value(node_base, "rel_max_lost_particles"));
×
188
  }
189

190
  // Get relative number of lost particles
191
  if (check_for_node(node_base, "max_write_lost_particles")) {
5,912✔
192
    max_write_lost_particles =
17✔
193
      std::stoi(get_node_value(node_base, "max_write_lost_particles"));
17✔
194
  }
195

196
  // Get number of inactive batches
197
  if (run_mode == RunMode::EIGENVALUE ||
5,912✔
198
      solver_type == SolverType::RANDOM_RAY) {
1,831✔
199
    if (check_for_node(node_base, "inactive")) {
4,166✔
200
      n_inactive = std::stoi(get_node_value(node_base, "inactive"));
4,036✔
201
    }
202
    if (check_for_node(node_base, "generations_per_batch")) {
4,166✔
203
      gen_per_batch =
17✔
204
        std::stoi(get_node_value(node_base, "generations_per_batch"));
17✔
205
    }
206

207
    // Preallocate space for keff and entropy by generation
208
    int m = settings::n_max_batches * settings::gen_per_batch;
4,166✔
209
    simulation::k_generation.reserve(m);
4,166✔
210
    simulation::entropy.reserve(m);
4,166✔
211

212
    // Get the trigger information for keff
213
    if (check_for_node(node_base, "keff_trigger")) {
4,166✔
214
      xml_node node_keff_trigger = node_base.child("keff_trigger");
114✔
215

216
      if (check_for_node(node_keff_trigger, "type")) {
114✔
217
        auto temp = get_node_value(node_keff_trigger, "type", true, true);
114✔
218
        if (temp == "std_dev") {
114✔
219
          keff_trigger.metric = TriggerMetric::standard_deviation;
114✔
220
        } else if (temp == "variance") {
×
221
          keff_trigger.metric = TriggerMetric::variance;
×
222
        } else if (temp == "rel_err") {
×
223
          keff_trigger.metric = TriggerMetric::relative_error;
×
224
        } else {
225
          fatal_error("Unrecognized keff trigger type " + temp);
×
226
        }
227
      } else {
114✔
228
        fatal_error("Specify keff trigger type in settings XML");
×
229
      }
230

231
      if (check_for_node(node_keff_trigger, "threshold")) {
114✔
232
        keff_trigger.threshold =
114✔
233
          std::stod(get_node_value(node_keff_trigger, "threshold"));
114✔
234
        if (keff_trigger.threshold <= 0) {
114✔
235
          fatal_error("keff trigger threshold must be positive");
×
236
        }
237
      } else {
238
        fatal_error("Specify keff trigger threshold in settings XML");
×
239
      }
240
    }
241
  }
242

243
  // Random ray variables
244
  if (solver_type == SolverType::RANDOM_RAY) {
5,912✔
245
    xml_node random_ray_node = node_base.child("random_ray");
119✔
246
    if (check_for_node(random_ray_node, "distance_active")) {
119✔
247
      RandomRay::distance_active_ =
119✔
248
        std::stod(get_node_value(random_ray_node, "distance_active"));
119✔
249
      if (RandomRay::distance_active_ <= 0.0) {
119✔
250
        fatal_error("Random ray active distance must be greater than 0");
×
251
      }
252
    } else {
253
      fatal_error("Specify random ray active distance in settings XML");
×
254
    }
255
    if (check_for_node(random_ray_node, "distance_inactive")) {
119✔
256
      RandomRay::distance_inactive_ =
119✔
257
        std::stod(get_node_value(random_ray_node, "distance_inactive"));
119✔
258
      if (RandomRay::distance_inactive_ < 0) {
119✔
259
        fatal_error(
×
260
          "Random ray inactive distance must be greater than or equal to 0");
261
      }
262
    } else {
263
      fatal_error("Specify random ray inactive distance in settings XML");
×
264
    }
265
    if (check_for_node(random_ray_node, "source")) {
119✔
266
      xml_node source_node = random_ray_node.child("source");
119✔
267
      // Get point to list of <source> elements and make sure there is at least
268
      // one
269
      RandomRay::ray_source_ = Source::create(source_node);
119✔
270
    } else {
271
      fatal_error("Specify random ray source in settings XML");
×
272
    }
273
    if (check_for_node(random_ray_node, "volume_normalized_flux_tallies")) {
119✔
274
      FlatSourceDomain::volume_normalized_flux_tallies_ =
102✔
275
        get_node_value_bool(random_ray_node, "volume_normalized_flux_tallies");
102✔
276
    }
277
  }
278
}
5,912✔
279

280
void read_settings_xml()
1,732✔
281
{
282
  using namespace settings;
283
  using namespace pugi;
284
  // Check if settings.xml exists
285
  std::string filename = settings::path_input + "settings.xml";
1,732✔
286
  if (!file_exists(filename)) {
1,732✔
287
    if (run_mode != RunMode::PLOTTING) {
24✔
288
      fatal_error("Could not find any XML input files! In order to run OpenMC, "
×
289
                  "you first need a set of input files; at a minimum, this "
290
                  "includes settings.xml, geometry.xml, and materials.xml or a "
291
                  "single model XML file. Please consult the user's guide at "
292
                  "https://docs.openmc.org for further information.");
293
    } else {
294
      // The settings.xml file is optional if we just want to make a plot.
295
      return;
24✔
296
    }
297
  }
298

299
  // Parse settings.xml file
300
  xml_document doc;
1,708✔
301
  auto result = doc.load_file(filename.c_str());
1,708✔
302
  if (!result) {
1,708✔
303
    fatal_error("Error processing settings.xml file.");
×
304
  }
305

306
  // Get root element
307
  xml_node root = doc.document_element();
1,708✔
308

309
  // Verbosity
310
  if (check_for_node(root, "verbosity")) {
1,708✔
311
    verbosity = std::stoi(get_node_value(root, "verbosity"));
213✔
312
  }
313

314
  // To this point, we haven't displayed any output since we didn't know what
315
  // the verbosity is. Now that we checked for it, show the title if necessary
316
  if (mpi::master) {
1,708✔
317
    if (verbosity >= 2)
1,478✔
318
      title();
1,275✔
319
  }
320

321
  write_message("Reading settings XML file...", 5);
1,708✔
322

323
  read_settings_xml(root);
1,708✔
324
}
1,721✔
325

326
void read_settings_xml(pugi::xml_node root)
6,262✔
327
{
328
  using namespace settings;
329
  using namespace pugi;
330

331
  // Find if a multi-group or continuous-energy simulation is desired
332
  if (check_for_node(root, "energy_mode")) {
6,262✔
333
    std::string temp_str = get_node_value(root, "energy_mode", true, true);
663✔
334
    if (temp_str == "mg" || temp_str == "multi-group") {
663✔
335
      run_CE = false;
663✔
336
    } else if (temp_str == "ce" || temp_str == "continuous-energy") {
×
337
      run_CE = true;
×
338
    }
339
  }
663✔
340

341
  // Check for user meshes and allocate
342
  read_meshes(root);
6,262✔
343

344
  // Look for deprecated cross_sections.xml file in settings.xml
345
  if (check_for_node(root, "cross_sections")) {
6,262✔
346
    warning(
×
347
      "Setting cross_sections in settings.xml has been deprecated."
348
      " The cross_sections are now set in materials.xml and the "
349
      "cross_sections input to materials.xml and the OPENMC_CROSS_SECTIONS"
350
      " environment variable will take precendent over setting "
351
      "cross_sections in settings.xml.");
352
    path_cross_sections = get_node_value(root, "cross_sections");
×
353
  }
354

355
  if (!run_CE) {
6,262✔
356
    // Scattering Treatments
357
    if (check_for_node(root, "max_order")) {
663✔
358
      max_order = std::stoi(get_node_value(root, "max_order"));
17✔
359
    } else {
360
      // Set to default of largest int - 1, which means to use whatever is
361
      // contained in library. This is largest int - 1 because for legendre
362
      // scattering, a value of 1 is added to the order; adding 1 to the largest
363
      // int gets you the largest negative integer, which is not what we want.
364
      max_order = std::numeric_limits<int>::max() - 1;
646✔
365
    }
366
  }
367

368
  // Check for a trigger node and get trigger information
369
  if (check_for_node(root, "trigger")) {
6,262✔
370
    xml_node node_trigger = root.child("trigger");
162✔
371

372
    // Check if trigger(s) are to be turned on
373
    trigger_on = get_node_value_bool(node_trigger, "active");
162✔
374

375
    if (trigger_on) {
162✔
376
      if (check_for_node(node_trigger, "max_batches")) {
145✔
377
        n_max_batches = std::stoi(get_node_value(node_trigger, "max_batches"));
145✔
378
      } else {
379
        fatal_error("<max_batches> must be specified with triggers");
×
380
      }
381

382
      // Get the batch interval to check triggers
383
      if (!check_for_node(node_trigger, "batch_interval")) {
145✔
384
        trigger_predict = true;
17✔
385
      } else {
386
        trigger_batch_interval =
128✔
387
          std::stoi(get_node_value(node_trigger, "batch_interval"));
128✔
388
        if (trigger_batch_interval <= 0) {
128✔
389
          fatal_error("Trigger batch interval must be greater than zero");
×
390
        }
391
      }
392
    }
393
  }
394

395
  // Check run mode if it hasn't been set from the command line
396
  xml_node node_mode;
6,262✔
397
  if (run_mode == RunMode::UNSET) {
6,262✔
398
    if (check_for_node(root, "run_mode")) {
5,946✔
399
      std::string temp_str = get_node_value(root, "run_mode", true, true);
5,878✔
400
      if (temp_str == "eigenvalue") {
5,878✔
401
        run_mode = RunMode::EIGENVALUE;
4,013✔
402
      } else if (temp_str == "fixed source") {
1,865✔
403
        run_mode = RunMode::FIXED_SOURCE;
1,831✔
404
      } else if (temp_str == "plot") {
34✔
405
        run_mode = RunMode::PLOTTING;
×
406
      } else if (temp_str == "particle restart") {
34✔
407
        run_mode = RunMode::PARTICLE;
×
408
      } else if (temp_str == "volume") {
34✔
409
        run_mode = RunMode::VOLUME;
34✔
410
      } else {
411
        fatal_error("Unrecognized run mode: " + temp_str);
×
412
      }
413

414
      // Assume XML specifies <particles>, <batches>, etc. directly
415
      node_mode = root;
5,878✔
416
    } else {
5,878✔
417
      warning("<run_mode> should be specified.");
68✔
418

419
      // Make sure that either eigenvalue or fixed source was specified
420
      node_mode = root.child("eigenvalue");
68✔
421
      if (node_mode) {
68✔
422
        run_mode = RunMode::EIGENVALUE;
68✔
423
      } else {
424
        node_mode = root.child("fixed_source");
×
425
        if (node_mode) {
×
426
          run_mode = RunMode::FIXED_SOURCE;
×
427
        } else {
428
          fatal_error("<eigenvalue> or <fixed_source> not specified.");
×
429
        }
430
      }
431
    }
432
  }
433

434
  // Check solver type
435
  if (check_for_node(root, "random_ray")) {
6,262✔
436
    solver_type = SolverType::RANDOM_RAY;
119✔
437
    if (run_CE)
119✔
438
      fatal_error("multi-group energy mode must be specified in settings XML "
×
439
                  "when using the random ray solver.");
440
  }
441

442
  if (run_mode == RunMode::EIGENVALUE || run_mode == RunMode::FIXED_SOURCE) {
6,262✔
443
    // Read run parameters
444
    get_run_parameters(node_mode);
5,912✔
445

446
    // Check number of active batches, inactive batches, max lost particles and
447
    // particles
448
    if (n_batches <= n_inactive) {
5,912✔
449
      fatal_error("Number of active batches must be greater than zero.");
×
450
    } else if (n_inactive < 0) {
5,912✔
451
      fatal_error("Number of inactive batches must be non-negative.");
×
452
    } else if (n_particles <= 0) {
5,912✔
453
      fatal_error("Number of particles must be greater than zero.");
×
454
    } else if (max_lost_particles <= 0) {
5,912✔
455
      fatal_error("Number of max lost particles must be greater than zero.");
×
456
    } else if (rel_max_lost_particles <= 0.0 || rel_max_lost_particles >= 1.0) {
5,912✔
457
      fatal_error("Relative max lost particles must be between zero and one.");
×
458
    }
459
  }
460

461
  // Copy plotting random number seed if specified
462
  if (check_for_node(root, "plot_seed")) {
6,262✔
463
    auto seed = std::stoll(get_node_value(root, "plot_seed"));
×
464
    model::plotter_seed = seed;
×
465
  }
466

467
  // Copy random number seed if specified
468
  if (check_for_node(root, "seed")) {
6,262✔
469
    auto seed = std::stoll(get_node_value(root, "seed"));
410✔
470
    openmc_set_seed(seed);
410✔
471
  }
472

473
  // Check for electron treatment
474
  if (check_for_node(root, "electron_treatment")) {
6,262✔
475
    auto temp_str = get_node_value(root, "electron_treatment", true, true);
51✔
476
    if (temp_str == "led") {
51✔
477
      electron_treatment = ElectronTreatment::LED;
×
478
    } else if (temp_str == "ttb") {
51✔
479
      electron_treatment = ElectronTreatment::TTB;
51✔
480
    } else {
481
      fatal_error("Unrecognized electron treatment: " + temp_str + ".");
×
482
    }
483
  }
51✔
484

485
  // Check for photon transport
486
  if (check_for_node(root, "photon_transport")) {
6,262✔
487
    photon_transport = get_node_value_bool(root, "photon_transport");
189✔
488

489
    if (!run_CE && photon_transport) {
189✔
490
      fatal_error("Photon transport is not currently supported in "
×
491
                  "multigroup mode");
492
    }
493
  }
494

495
  // Number of bins for logarithmic grid
496
  if (check_for_node(root, "log_grid_bins")) {
6,262✔
497
    n_log_bins = std::stoi(get_node_value(root, "log_grid_bins"));
17✔
498
    if (n_log_bins < 1) {
17✔
499
      fatal_error("Number of bins for logarithmic grid must be greater "
×
500
                  "than zero.");
501
    }
502
  }
503

504
  // Number of OpenMP threads
505
  if (check_for_node(root, "threads")) {
6,262✔
506
    if (mpi::master)
×
507
      warning("The <threads> element has been deprecated. Use "
×
508
              "the OMP_NUM_THREADS environment variable to set the number of "
509
              "threads.");
510
  }
511

512
  // ==========================================================================
513
  // EXTERNAL SOURCE
514

515
  // Get point to list of <source> elements and make sure there is at least one
516
  for (pugi::xml_node node : root.children("source")) {
12,362✔
517
    model::external_sources.push_back(Source::create(node));
6,111✔
518
  }
519

520
  // Check if the user has specified to read surface source
521
  if (check_for_node(root, "surf_source_read")) {
6,251✔
522
    surf_source_read = true;
17✔
523
    // Get surface source read node
524
    xml_node node_ssr = root.child("surf_source_read");
17✔
525

526
    std::string path = "surface_source.h5";
17✔
527
    // Check if the user has specified different file for surface source reading
528
    if (check_for_node(node_ssr, "path")) {
17✔
529
      path = get_node_value(node_ssr, "path", false, true);
17✔
530
    }
531
    model::external_sources.push_back(make_unique<FileSource>(path));
17✔
532
  }
17✔
533

534
  // If no source specified, default to isotropic point source at origin with
535
  // Watt spectrum. No default source is needed in random ray mode.
536
  if (model::external_sources.empty() &&
7,920✔
537
      settings::solver_type != SolverType::RANDOM_RAY) {
1,669✔
538
    double T[] {0.0};
1,635✔
539
    double p[] {1.0};
1,635✔
540
    model::external_sources.push_back(make_unique<IndependentSource>(
1,635✔
541
      UPtrSpace {new SpatialPoint({0.0, 0.0, 0.0})},
3,270✔
542
      UPtrAngle {new Isotropic()}, UPtrDist {new Watt(0.988e6, 2.249e-6)},
3,270✔
543
      UPtrDist {new Discrete(T, p, 1)}));
3,270✔
544
  }
545

546
  // Check if we want to write out source
547
  if (check_for_node(root, "write_initial_source")) {
6,251✔
548
    write_initial_source = get_node_value_bool(root, "write_initial_source");
×
549
  }
550

551
  // Survival biasing
552
  if (check_for_node(root, "survival_biasing")) {
6,251✔
553
    survival_biasing = get_node_value_bool(root, "survival_biasing");
190✔
554
  }
555

556
  // Probability tables
557
  if (check_for_node(root, "ptables")) {
6,251✔
558
    urr_ptables_on = get_node_value_bool(root, "ptables");
17✔
559
  }
560

561
  // Cutoffs
562
  if (check_for_node(root, "cutoff")) {
6,251✔
563
    xml_node node_cutoff = root.child("cutoff");
114✔
564
    if (check_for_node(node_cutoff, "weight")) {
114✔
565
      weight_cutoff = std::stod(get_node_value(node_cutoff, "weight"));
17✔
566
    }
567
    if (check_for_node(node_cutoff, "weight_avg")) {
114✔
568
      weight_survive = std::stod(get_node_value(node_cutoff, "weight_avg"));
17✔
569
    }
570
    if (check_for_node(node_cutoff, "survival_normalization")){ 
114✔
NEW
571
      survival_normalization = get_node_value_bool(node_cutoff, "survival_normalization");
×
572
    }
573
    if (check_for_node(node_cutoff, "energy_neutron")) {
114✔
574
      energy_cutoff[0] =
34✔
575
        std::stod(get_node_value(node_cutoff, "energy_neutron"));
17✔
576
    } else if (check_for_node(node_cutoff, "energy")) {
97✔
577
      warning("The use of an <energy> cutoff is deprecated and should "
×
578
              "be replaced by <energy_neutron>.");
579
      energy_cutoff[0] = std::stod(get_node_value(node_cutoff, "energy"));
×
580
    }
581
    if (check_for_node(node_cutoff, "energy_photon")) {
114✔
582
      energy_cutoff[1] =
126✔
583
        std::stod(get_node_value(node_cutoff, "energy_photon"));
63✔
584
    }
585
    if (check_for_node(node_cutoff, "energy_electron")) {
114✔
586
      energy_cutoff[2] =
×
587
        std::stof(get_node_value(node_cutoff, "energy_electron"));
×
588
    }
589
    if (check_for_node(node_cutoff, "energy_positron")) {
114✔
590
      energy_cutoff[3] =
×
591
        std::stod(get_node_value(node_cutoff, "energy_positron"));
×
592
    }
593
    if (check_for_node(node_cutoff, "time_neutron")) {
114✔
594
      time_cutoff[0] = std::stod(get_node_value(node_cutoff, "time_neutron"));
17✔
595
    }
596
    if (check_for_node(node_cutoff, "time_photon")) {
114✔
597
      time_cutoff[1] = std::stod(get_node_value(node_cutoff, "time_photon"));
×
598
    }
599
    if (check_for_node(node_cutoff, "time_electron")) {
114✔
600
      time_cutoff[2] = std::stod(get_node_value(node_cutoff, "time_electron"));
×
601
    }
602
    if (check_for_node(node_cutoff, "time_positron")) {
114✔
603
      time_cutoff[3] = std::stod(get_node_value(node_cutoff, "time_positron"));
×
604
    }
605
  }
606

607
  // Particle trace
608
  if (check_for_node(root, "trace")) {
6,251✔
609
    auto temp = get_node_array<int64_t>(root, "trace");
17✔
610
    if (temp.size() != 3) {
17✔
611
      fatal_error("Must provide 3 integers for <trace> that specify the "
×
612
                  "batch, generation, and particle number.");
613
    }
614
    trace_batch = temp.at(0);
17✔
615
    trace_gen = temp.at(1);
17✔
616
    trace_particle = temp.at(2);
17✔
617
  }
17✔
618

619
  // Particle tracks
620
  if (check_for_node(root, "track")) {
6,251✔
621
    // Get values and make sure there are three per particle
622
    auto temp = get_node_array<int>(root, "track");
51✔
623
    if (temp.size() % 3 != 0) {
51✔
624
      fatal_error(
×
625
        "Number of integers specified in 'track' is not "
626
        "divisible by 3.  Please provide 3 integers per particle to be "
627
        "tracked.");
628
    }
629

630
    // Reshape into track_identifiers
631
    int n_tracks = temp.size() / 3;
51✔
632
    for (int i = 0; i < n_tracks; ++i) {
204✔
633
      track_identifiers.push_back(
153✔
634
        {temp[3 * i], temp[3 * i + 1], temp[3 * i + 2]});
153✔
635
    }
636
  }
51✔
637

638
  // Shannon entropy
639
  if (solver_type == SolverType::RANDOM_RAY) {
6,251✔
640
    if (check_for_node(root, "entropy_mesh")) {
119✔
641
      fatal_error("Random ray uses FSRs to compute the Shannon entropy. "
×
642
                  "No user-defined entropy mesh is supported.");
643
    }
644
    entropy_on = true;
119✔
645
  } else if (solver_type == SolverType::MONTE_CARLO) {
6,132✔
646
    if (check_for_node(root, "entropy_mesh")) {
6,132✔
647
      int temp = std::stoi(get_node_value(root, "entropy_mesh"));
515✔
648
      if (model::mesh_map.find(temp) == model::mesh_map.end()) {
515✔
649
        fatal_error(fmt::format(
×
650
          "Mesh {} specified for Shannon entropy does not exist.", temp));
651
      }
652

653
      auto* m = dynamic_cast<RegularMesh*>(
515✔
654
        model::meshes[model::mesh_map.at(temp)].get());
515✔
655
      if (!m)
515✔
656
        fatal_error("Only regular meshes can be used as an entropy mesh");
×
657
      simulation::entropy_mesh = m;
515✔
658

659
      // Turn on Shannon entropy calculation
660
      entropy_on = true;
515✔
661

662
    } else if (check_for_node(root, "entropy")) {
5,617✔
663
      fatal_error(
×
664
        "Specifying a Shannon entropy mesh via the <entropy> element "
665
        "is deprecated. Please create a mesh using <mesh> and then reference "
666
        "it by specifying its ID in an <entropy_mesh> element.");
667
    }
668
  }
669
  // Uniform fission source weighting mesh
670
  if (check_for_node(root, "ufs_mesh")) {
6,251✔
671
    auto temp = std::stoi(get_node_value(root, "ufs_mesh"));
17✔
672
    if (model::mesh_map.find(temp) == model::mesh_map.end()) {
17✔
673
      fatal_error(fmt::format("Mesh {} specified for uniform fission site "
×
674
                              "method does not exist.",
675
        temp));
676
    }
677

678
    auto* m =
679
      dynamic_cast<RegularMesh*>(model::meshes[model::mesh_map.at(temp)].get());
17✔
680
    if (!m)
17✔
681
      fatal_error("Only regular meshes can be used as a UFS mesh");
×
682
    simulation::ufs_mesh = m;
17✔
683

684
    // Turn on uniform fission source weighting
685
    ufs_on = true;
17✔
686

687
  } else if (check_for_node(root, "uniform_fs")) {
6,234✔
688
    fatal_error(
×
689
      "Specifying a UFS mesh via the <uniform_fs> element "
690
      "is deprecated. Please create a mesh using <mesh> and then reference "
691
      "it by specifying its ID in a <ufs_mesh> element.");
692
  }
693

694
  // Check if the user has specified to write state points
695
  if (check_for_node(root, "state_point")) {
6,251✔
696

697
    // Get pointer to state_point node
698
    auto node_sp = root.child("state_point");
204✔
699

700
    // Determine number of batches at which to store state points
701
    if (check_for_node(node_sp, "batches")) {
204✔
702
      // User gave specific batches to write state points
703
      auto temp = get_node_array<int>(node_sp, "batches");
204✔
704
      for (const auto& b : temp) {
629✔
705
        statepoint_batch.insert(b);
425✔
706
      }
707
    } else {
204✔
708
      // If neither were specified, write state point at last batch
709
      statepoint_batch.insert(n_batches);
×
710
    }
711
  } else {
712
    // If no <state_point> tag was present, by default write state point at
713
    // last batch only
714
    statepoint_batch.insert(n_batches);
6,047✔
715
  }
716

717
  // Check if the user has specified to write source points
718
  if (check_for_node(root, "source_point")) {
6,251✔
719
    // Get source_point node
720
    xml_node node_sp = root.child("source_point");
102✔
721

722
    // Determine batches at which to store source points
723
    if (check_for_node(node_sp, "batches")) {
102✔
724
      // User gave specific batches to write source points
725
      auto temp = get_node_array<int>(node_sp, "batches");
51✔
726
      for (const auto& b : temp) {
136✔
727
        sourcepoint_batch.insert(b);
85✔
728
      }
729
    } else {
51✔
730
      // If neither were specified, write source points with state points
731
      sourcepoint_batch = statepoint_batch;
51✔
732
    }
733

734
    // Check if the user has specified to write binary source file
735
    if (check_for_node(node_sp, "separate")) {
102✔
736
      source_separate = get_node_value_bool(node_sp, "separate");
68✔
737
    }
738
    if (check_for_node(node_sp, "write")) {
102✔
739
      source_write = get_node_value_bool(node_sp, "write");
×
740
    }
741
    if (check_for_node(node_sp, "mcpl")) {
102✔
742
      source_mcpl_write = get_node_value_bool(node_sp, "mcpl");
17✔
743

744
      // Make sure MCPL support is enabled
745
      if (source_mcpl_write && !MCPL_ENABLED) {
17✔
746
        fatal_error(
×
747
          "Your build of OpenMC does not support writing MCPL source files.");
748
      }
749
    }
750
    if (check_for_node(node_sp, "overwrite_latest")) {
102✔
751
      source_latest = get_node_value_bool(node_sp, "overwrite_latest");
17✔
752
      source_separate = source_latest;
17✔
753
    }
754
  } else {
755
    // If no <source_point> tag was present, by default we keep source bank in
756
    // statepoint file and write it out at statepoints intervals
757
    source_separate = false;
6,149✔
758
    sourcepoint_batch = statepoint_batch;
6,149✔
759
  }
760

761
  // Check if the user has specified to write surface source
762
  if (check_for_node(root, "surf_source_write")) {
6,251✔
763
    surf_source_write = true;
343✔
764
    // Get surface source write node
765
    xml_node node_ssw = root.child("surf_source_write");
343✔
766

767
    // Determine surface ids at which crossing particles are to be banked.
768
    // If no surfaces are specified, all surfaces in the model will be used
769
    // to bank source points.
770
    if (check_for_node(node_ssw, "surface_ids")) {
343✔
771
      auto temp = get_node_array<int>(node_ssw, "surface_ids");
209✔
772
      for (const auto& b : temp) {
1,065✔
773
        source_write_surf_id.insert(b);
856✔
774
      }
775
    }
209✔
776

777
    // Get maximum number of particles to be banked per surface
778
    if (check_for_node(node_ssw, "max_particles")) {
343✔
779
      max_surface_particles =
333✔
780
        std::stoll(get_node_value(node_ssw, "max_particles"));
333✔
781
    } else {
782
      fatal_error("A maximum number of particles needs to be specified "
10✔
783
                  "using the 'max_particles' parameter to store surface "
784
                  "source points.");
785
    }
786

787
    if (check_for_node(node_ssw, "mcpl")) {
333✔
788
      surf_mcpl_write = get_node_value_bool(node_ssw, "mcpl");
×
789

790
      // Make sure MCPL support is enabled
791
      if (surf_mcpl_write && !MCPL_ENABLED) {
×
792
        fatal_error("Your build of OpenMC does not support writing MCPL "
×
793
                    "surface source files.");
794
      }
795
    }
796
    // Get cell information
797
    if (check_for_node(node_ssw, "cell")) {
333✔
798
      ssw_cell_id = std::stoll(get_node_value(node_ssw, "cell"));
114✔
799
      ssw_cell_type = SSWCellType::Both;
114✔
800
    }
801
    if (check_for_node(node_ssw, "cellfrom")) {
333✔
802
      if (ssw_cell_id != C_NONE) {
99✔
803
        fatal_error(
20✔
804
          "'cell', 'cellfrom' and 'cellto' cannot be used at the same time.");
805
      }
806
      ssw_cell_id = std::stoll(get_node_value(node_ssw, "cellfrom"));
79✔
807
      ssw_cell_type = SSWCellType::From;
79✔
808
    }
809
    if (check_for_node(node_ssw, "cellto")) {
313✔
810
      if (ssw_cell_id != C_NONE) {
78✔
811
        fatal_error(
20✔
812
          "'cell', 'cellfrom' and 'cellto' cannot be used at the same time.");
813
      }
814
      ssw_cell_id = std::stoll(get_node_value(node_ssw, "cellto"));
58✔
815
      ssw_cell_type = SSWCellType::To;
58✔
816
    }
817
  }
818

819
  // If source is not separate and is to be written out in the statepoint file,
820
  // make sure that the sourcepoint batch numbers are contained in the
821
  // statepoint list
822
  if (!source_separate) {
6,201✔
823
    for (const auto& b : sourcepoint_batch) {
12,402✔
824
      if (!contains(statepoint_batch, b)) {
6,286✔
825
        fatal_error(
×
826
          "Sourcepoint batches are not a subset of statepoint batches.");
827
      }
828
    }
829
  }
830

831
  // Check if the user has specified to not reduce tallies at the end of every
832
  // batch
833
  if (check_for_node(root, "no_reduce")) {
6,201✔
834
    reduce_tallies = !get_node_value_bool(root, "no_reduce");
×
835
  }
836

837
  // Check if the user has specified to use confidence intervals for
838
  // uncertainties rather than standard deviations
839
  if (check_for_node(root, "confidence_intervals")) {
6,201✔
840
    confidence_intervals = get_node_value_bool(root, "confidence_intervals");
17✔
841
  }
842

843
  // Check for output options
844
  if (check_for_node(root, "output")) {
6,201✔
845
    // Get pointer to output node
846
    pugi::xml_node node_output = root.child("output");
397✔
847

848
    // Check for summary option
849
    if (check_for_node(node_output, "summary")) {
397✔
850
      output_summary = get_node_value_bool(node_output, "summary");
380✔
851
    }
852

853
    // Check for ASCII tallies output option
854
    if (check_for_node(node_output, "tallies")) {
397✔
855
      output_tallies = get_node_value_bool(node_output, "tallies");
17✔
856
    }
857

858
    // Set output directory if a path has been specified
859
    if (check_for_node(node_output, "path")) {
397✔
860
      path_output = get_node_value(node_output, "path");
×
861
      if (!ends_with(path_output, "/")) {
×
862
        path_output += "/";
×
863
      }
864
    }
865
  }
866

867
  // Resonance scattering parameters
868
  if (check_for_node(root, "resonance_scattering")) {
6,201✔
869
    xml_node node_res_scat = root.child("resonance_scattering");
17✔
870

871
    // See if resonance scattering is enabled
872
    if (check_for_node(node_res_scat, "enable")) {
17✔
873
      res_scat_on = get_node_value_bool(node_res_scat, "enable");
17✔
874
    } else {
875
      res_scat_on = true;
×
876
    }
877

878
    // Determine what method is used
879
    if (check_for_node(node_res_scat, "method")) {
17✔
880
      auto temp = get_node_value(node_res_scat, "method", true, true);
17✔
881
      if (temp == "rvs") {
17✔
882
        res_scat_method = ResScatMethod::rvs;
17✔
883
      } else if (temp == "dbrc") {
×
884
        res_scat_method = ResScatMethod::dbrc;
×
885
      } else {
886
        fatal_error(
×
887
          "Unrecognized resonance elastic scattering method: " + temp + ".");
×
888
      }
889
    }
17✔
890

891
    // Minimum energy for resonance scattering
892
    if (check_for_node(node_res_scat, "energy_min")) {
17✔
893
      res_scat_energy_min =
17✔
894
        std::stod(get_node_value(node_res_scat, "energy_min"));
17✔
895
    }
896
    if (res_scat_energy_min < 0.0) {
17✔
897
      fatal_error("Lower resonance scattering energy bound is negative");
×
898
    }
899

900
    // Maximum energy for resonance scattering
901
    if (check_for_node(node_res_scat, "energy_max")) {
17✔
902
      res_scat_energy_max =
17✔
903
        std::stod(get_node_value(node_res_scat, "energy_max"));
17✔
904
    }
905
    if (res_scat_energy_max < res_scat_energy_min) {
17✔
906
      fatal_error("Upper resonance scattering energy bound is below the "
×
907
                  "lower resonance scattering energy bound.");
908
    }
909

910
    // Get resonance scattering nuclides
911
    if (check_for_node(node_res_scat, "nuclides")) {
17✔
912
      res_scat_nuclides =
913
        get_node_array<std::string>(node_res_scat, "nuclides");
17✔
914
    }
915
  }
916

917
  // Get volume calculations
918
  for (pugi::xml_node node_vol : root.children("volume_calc")) {
6,531✔
919
    model::volume_calcs.emplace_back(node_vol);
330✔
920
  }
921

922
  // Get temperature settings
923
  if (check_for_node(root, "temperature_default")) {
6,201✔
924
    temperature_default =
187✔
925
      std::stod(get_node_value(root, "temperature_default"));
187✔
926
  }
927
  if (check_for_node(root, "temperature_method")) {
6,201✔
928
    auto temp = get_node_value(root, "temperature_method", true, true);
350✔
929
    if (temp == "nearest") {
350✔
930
      temperature_method = TemperatureMethod::NEAREST;
150✔
931
    } else if (temp == "interpolation") {
200✔
932
      temperature_method = TemperatureMethod::INTERPOLATION;
200✔
933
    } else {
934
      fatal_error("Unknown temperature method: " + temp);
×
935
    }
936
  }
350✔
937
  if (check_for_node(root, "temperature_tolerance")) {
6,201✔
938
    temperature_tolerance =
186✔
939
      std::stod(get_node_value(root, "temperature_tolerance"));
186✔
940
  }
941
  if (check_for_node(root, "temperature_multipole")) {
6,201✔
942
    temperature_multipole = get_node_value_bool(root, "temperature_multipole");
34✔
943

944
    // Multipole currently doesn't work with photon transport
945
    if (temperature_multipole && photon_transport) {
34✔
946
      fatal_error("Multipole data cannot currently be used in conjunction with "
×
947
                  "photon transport.");
948
    }
949
  }
950
  if (check_for_node(root, "temperature_range")) {
6,201✔
951
    auto range = get_node_array<double>(root, "temperature_range");
×
952
    temperature_range[0] = range.at(0);
×
953
    temperature_range[1] = range.at(1);
×
954
  }
955

956
  // Check for tabular_legendre options
957
  if (check_for_node(root, "tabular_legendre")) {
6,201✔
958
    // Get pointer to tabular_legendre node
959
    xml_node node_tab_leg = root.child("tabular_legendre");
102✔
960

961
    // Check for enable option
962
    if (check_for_node(node_tab_leg, "enable")) {
102✔
963
      legendre_to_tabular = get_node_value_bool(node_tab_leg, "enable");
102✔
964
    }
965

966
    // Check for the number of points
967
    if (check_for_node(node_tab_leg, "num_points")) {
102✔
968
      legendre_to_tabular_points =
×
969
        std::stoi(get_node_value(node_tab_leg, "num_points"));
×
970
      if (legendre_to_tabular_points <= 1 && !run_CE) {
×
971
        fatal_error(
×
972
          "The 'num_points' subelement/attribute of the "
973
          "<tabular_legendre> element must contain a value greater than 1");
974
      }
975
    }
976
  }
977

978
  // Check whether create delayed neutrons in fission
979
  if (check_for_node(root, "create_delayed_neutrons")) {
6,201✔
980
    create_delayed_neutrons =
×
981
      get_node_value_bool(root, "create_delayed_neutrons");
×
982
  }
983

984
  // Check whether create fission sites
985
  if (run_mode == RunMode::FIXED_SOURCE) {
6,201✔
986
    if (check_for_node(root, "create_fission_neutrons")) {
1,780✔
987
      create_fission_neutrons =
17✔
988
        get_node_value_bool(root, "create_fission_neutrons");
17✔
989
    }
990
  }
991

992
  // Check whether to scale fission photon yields
993
  if (check_for_node(root, "delayed_photon_scaling")) {
6,201✔
994
    delayed_photon_scaling =
×
995
      get_node_value_bool(root, "delayed_photon_scaling");
×
996
  }
997

998
  // Check whether to use event-based parallelism
999
  if (check_for_node(root, "event_based")) {
6,201✔
1000
    event_based = get_node_value_bool(root, "event_based");
×
1001
  }
1002

1003
  // Check whether material cell offsets should be generated
1004
  if (check_for_node(root, "material_cell_offsets")) {
6,201✔
1005
    material_cell_offsets = get_node_value_bool(root, "material_cell_offsets");
×
1006
  }
1007

1008
  // Weight window information
1009
  for (pugi::xml_node node_ww : root.children("weight_windows")) {
6,271✔
1010
    variance_reduction::weight_windows.emplace_back(
70✔
1011
      std::make_unique<WeightWindows>(node_ww));
140✔
1012
  }
1013

1014
  // Enable weight windows by default if one or more are present
1015
  if (variance_reduction::weight_windows.size() > 0)
6,201✔
1016
    settings::weight_windows_on = true;
41✔
1017

1018
  // read weight windows from file
1019
  if (check_for_node(root, "weight_windows_file")) {
6,201✔
1020
    weight_windows_file = get_node_value(root, "weight_windows_file");
×
1021
  }
1022

1023
  // read settings for weight windows value, this will override
1024
  // the automatic setting even if weight windows are present
1025
  if (check_for_node(root, "weight_windows_on")) {
6,201✔
1026
    weight_windows_on = get_node_value_bool(root, "weight_windows_on");
24✔
1027
  }
1028

1029
  if (check_for_node(root, "max_history_splits")) {
6,201✔
1030
    settings::max_history_splits =
233✔
1031
      std::stoi(get_node_value(root, "max_history_splits"));
233✔
1032
  }
1033

1034
  if (check_for_node(root, "max_tracks")) {
6,201✔
1035
    settings::max_tracks = std::stoi(get_node_value(root, "max_tracks"));
51✔
1036
  }
1037

1038
  // Create weight window generator objects
1039
  if (check_for_node(root, "weight_window_generators")) {
6,201✔
1040
    auto wwgs_node = root.child("weight_window_generators");
24✔
1041
    for (pugi::xml_node node_wwg :
24✔
1042
      wwgs_node.children("weight_windows_generator")) {
72✔
1043
      variance_reduction::weight_windows_generators.emplace_back(
24✔
1044
        std::make_unique<WeightWindowsGenerator>(node_wwg));
48✔
1045
    }
1046
    // if any of the weight windows are intended to be generated otf, make sure
1047
    // they're applied
1048
    for (const auto& wwg : variance_reduction::weight_windows_generators) {
24✔
1049
      if (wwg->on_the_fly_) {
24✔
1050
        settings::weight_windows_on = true;
24✔
1051
        break;
24✔
1052
      }
1053
    }
1054
  }
1055

1056
  // Set up weight window checkpoints
1057
  if (check_for_node(root, "weight_window_checkpoints")) {
6,201✔
1058
    xml_node ww_checkpoints = root.child("weight_window_checkpoints");
×
1059
    if (check_for_node(ww_checkpoints, "collision")) {
×
1060
      weight_window_checkpoint_collision =
×
1061
        get_node_value_bool(ww_checkpoints, "collision");
×
1062
    }
1063
    if (check_for_node(ww_checkpoints, "surface")) {
×
1064
      weight_window_checkpoint_surface =
×
1065
        get_node_value_bool(ww_checkpoints, "surface");
×
1066
    }
1067
  }
1068
}
6,201✔
1069

1070
void free_memory_settings()
6,327✔
1071
{
1072
  settings::statepoint_batch.clear();
6,327✔
1073
  settings::sourcepoint_batch.clear();
6,327✔
1074
  settings::source_write_surf_id.clear();
6,327✔
1075
  settings::res_scat_nuclides.clear();
6,327✔
1076
}
6,327✔
1077

1078
//==============================================================================
1079
// C API functions
1080
//==============================================================================
1081

1082
extern "C" int openmc_set_n_batches(
60✔
1083
  int32_t n_batches, bool set_max_batches, bool add_statepoint_batch)
1084
{
1085
  if (settings::n_inactive >= n_batches) {
60✔
1086
    set_errmsg("Number of active batches must be greater than zero.");
12✔
1087
    return OPENMC_E_INVALID_ARGUMENT;
12✔
1088
  }
1089

1090
  if (simulation::current_batch >= n_batches) {
48✔
1091
    set_errmsg("Number of batches must be greater than current batch.");
12✔
1092
    return OPENMC_E_INVALID_ARGUMENT;
12✔
1093
  }
1094

1095
  if (!settings::trigger_on) {
36✔
1096
    // Set n_batches and n_max_batches to same value
1097
    settings::n_batches = n_batches;
12✔
1098
    settings::n_max_batches = n_batches;
12✔
1099
  } else {
1100
    // Set n_batches and n_max_batches based on value of set_max_batches
1101
    if (set_max_batches) {
24✔
1102
      settings::n_max_batches = n_batches;
12✔
1103
    } else {
1104
      settings::n_batches = n_batches;
12✔
1105
    }
1106
  }
1107

1108
  // Update size of k_generation and entropy
1109
  int m = settings::n_max_batches * settings::gen_per_batch;
36✔
1110
  simulation::k_generation.reserve(m);
36✔
1111
  simulation::entropy.reserve(m);
36✔
1112

1113
  // Add value of n_batches to statepoint_batch
1114
  if (add_statepoint_batch &&
60✔
1115
      !(contains(settings::statepoint_batch, n_batches)))
24✔
1116
    settings::statepoint_batch.insert(n_batches);
24✔
1117

1118
  return 0;
36✔
1119
}
1120

1121
extern "C" int openmc_get_n_batches(int* n_batches, bool get_max_batches)
5,010✔
1122
{
1123
  *n_batches = get_max_batches ? settings::n_max_batches : settings::n_batches;
5,010✔
1124

1125
  return 0;
5,010✔
1126
}
1127

1128
} // namespace openmc
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc