2018-08-20 14:40:32 -05:00
|
|
|
#ifndef OPENMC_INITIALIZE_H
|
|
|
|
|
#define OPENMC_INITIALIZE_H
|
2018-04-20 13:53:53 -05:00
|
|
|
|
2022-11-23 23:06:31 -06:00
|
|
|
#include <string>
|
|
|
|
|
|
2018-04-20 14:55:06 -05:00
|
|
|
#ifdef OPENMC_MPI
|
2018-04-20 13:53:53 -05:00
|
|
|
#include "mpi.h"
|
2018-04-20 14:55:06 -05:00
|
|
|
#endif
|
2018-04-20 13:53:53 -05:00
|
|
|
|
|
|
|
|
namespace openmc {
|
|
|
|
|
|
2018-04-25 12:51:45 -05:00
|
|
|
int parse_command_line(int argc, char* argv[]);
|
2018-04-20 13:53:53 -05:00
|
|
|
#ifdef OPENMC_MPI
|
2018-04-25 12:51:45 -05:00
|
|
|
void initialize_mpi(MPI_Comm intracomm);
|
2018-04-20 13:53:53 -05:00
|
|
|
#endif
|
2022-11-23 22:16:34 -06:00
|
|
|
|
|
|
|
|
//! Read material, geometry, settings, and tallies from a single XML file
|
2022-11-03 21:18:04 -05:00
|
|
|
bool read_model_xml();
|
2022-11-23 22:16:34 -06:00
|
|
|
//! Read inputs from separate XML files
|
|
|
|
|
void read_separate_xml_files();
|
|
|
|
|
//! Write some output that occurs right after initialization
|
2022-11-03 21:22:41 -05:00
|
|
|
void initial_output();
|
2018-04-20 13:53:53 -05:00
|
|
|
|
|
|
|
|
} // namespace openmc
|
|
|
|
|
|
2018-08-20 14:40:32 -05:00
|
|
|
#endif // OPENMC_INITIALIZE_H
|