Convert write_source_bank to C++, move some MPI initialization over too

This commit is contained in:
Paul Romano 2018-04-20 11:03:40 -05:00
parent 0ee5ec4ecb
commit 44ff22dc14
11 changed files with 200 additions and 154 deletions

View file

@ -127,7 +127,6 @@ extern "C" {
extern char openmc_err_msg[256];
extern double openmc_keff;
extern double openmc_keff_std;
extern bool openmc_master;
extern int32_t n_batches;
extern int32_t n_cells;
extern int32_t n_filters;
@ -147,6 +146,12 @@ extern "C" {
extern bool openmc_simulation_initialized;
extern int openmc_verbosity;
// Variables that are shared by necessity (can be removed later)
extern bool openmc_master;
extern int openmc_n_procs;
extern int openmc_rank;
extern int64_t openmc_work;
// Run modes
constexpr int RUN_MODE_FIXEDSOURCE {1};
constexpr int RUN_MODE_EIGENVALUE {2};