Move headers to include/openmc directory and openmc.h -> openmc/capi.h

This commit is contained in:
Paul Romano 2018-08-20 14:40:32 -05:00
parent 1f760461a3
commit 9f0ea52d1a
83 changed files with 283 additions and 261 deletions

View file

@ -422,7 +422,7 @@ add_library(libopenmc SHARED
src/xsdata.cpp)
set_target_properties(libopenmc PROPERTIES
OUTPUT_NAME openmc
PUBLIC_HEADER include/openmc.h
PUBLIC_HEADER include/openmc/capi.h
LINKER_LANGUAGE Fortran)
target_include_directories(libopenmc

View file

@ -1,5 +1,5 @@
#ifndef OPENMC_H
#define OPENMC_H
#ifndef OPENMC_CAPI_H
#define OPENMC_CAPI_H
#include <stdint.h>
#include <stdbool.h>
@ -166,14 +166,14 @@ extern "C" {
extern int64_t openmc_work;
// Run modes
constexpr int RUN_MODE_FIXEDSOURCE {1};
constexpr int RUN_MODE_EIGENVALUE {2};
constexpr int RUN_MODE_PLOTTING {3};
constexpr int RUN_MODE_PARTICLE {4};
constexpr int RUN_MODE_VOLUME {5};
const int RUN_MODE_FIXEDSOURCE = 1;
const int RUN_MODE_EIGENVALUE = 2;
const int RUN_MODE_PLOTTING = 3;
const int RUN_MODE_PARTICLE = 4;
const int RUN_MODE_VOLUME = 5;
#ifdef __cplusplus
}
#endif
#endif // OPENMC_H
#endif // OPENMC_CAPI_H

View file

@ -10,7 +10,7 @@
#include "hdf5.h"
#include "pugixml.hpp"
#include "position.h"
#include "openmc/position.h"
namespace openmc {

View file

@ -10,7 +10,7 @@
#include "pugixml.hpp"
#include "constants.h"
#include "openmc/constants.h"
namespace openmc {

View file

@ -6,9 +6,10 @@
#include <vector> // for vector
#include "distribution.h"
#include "hdf5.h"
#include "openmc/distribution.h"
namespace openmc {
//==============================================================================

View file

@ -9,8 +9,8 @@
#include "xtensor/xtensor.hpp"
#include "hdf5.h"
#include "constants.h"
#include "endf.h"
#include "openmc/constants.h"
#include "openmc/endf.h"
namespace openmc {

View file

@ -3,8 +3,8 @@
#include <memory>
#include "distribution.h"
#include "position.h"
#include "openmc/distribution.h"
#include "openmc/position.h"
namespace openmc {

View file

@ -3,8 +3,8 @@
#include "pugixml.hpp"
#include "distribution.h"
#include "position.h"
#include "openmc/distribution.h"
#include "openmc/position.h"
namespace openmc {

View file

@ -6,9 +6,10 @@
#include <vector>
#include "constants.h"
#include "hdf5.h"
#include "openmc/constants.h"
namespace openmc {
//! Convert integer representing interpolation law to enum

View file

@ -1,11 +1,11 @@
#ifndef ERROR_H
#define ERROR_H
#ifndef OPENMC_ERROR_H
#define OPENMC_ERROR_H
#include <cstring>
#include <string>
#include <sstream>
#include "openmc.h"
#include "openmc/capi.h"
namespace openmc {
@ -82,4 +82,4 @@ void write_message(const std::stringstream& message, int level)
}
} // namespace openmc
#endif // ERROR_H
#endif // OPENMC_ERROR_H

View file

@ -0,0 +1,6 @@
#ifndef OPENMC_FINALIZE_H
#define OPENMC_FINALIZE_H
extern "C" void openmc_free_bank();
#endif // OPENMC_FINALIZE_H

View file

@ -1,8 +1,8 @@
//! \file geometry_aux.h
//! Auxilary functions for geometry initialization and general data handling.
#ifndef GEOMETRY_AUX_H
#define GEOMETRY_AUX_H
#ifndef OPENMC_GEOMETRY_AUX_H
#define OPENMC_GEOMETRY_AUX_H
#include <cstdint>
@ -109,4 +109,4 @@ extern "C" int maximum_levels(int32_t univ);
extern "C" void free_memory_geometry_c();
} // namespace openmc
#endif // GEOMETRY_AUX_H
#endif // OPENMC_GEOMETRY_AUX_H

View file

@ -13,7 +13,7 @@
#include "xtensor/xadapt.hpp"
#include "xtensor/xarray.hpp"
#include "position.h"
#include "openmc/position.h"
namespace openmc {

View file

@ -1,5 +1,5 @@
#ifndef INITIALIZE_H
#define INITIALIZE_H
#ifndef OPENMC_INITIALIZE_H
#define OPENMC_INITIALIZE_H
#ifdef OPENMC_MPI
#include "mpi.h"
@ -17,4 +17,4 @@ void initialize_mpi(MPI_Comm intracomm);
}
#endif // INITIALIZE_H
#endif // OPENMC_INITIALIZE_H

View file

@ -10,8 +10,8 @@
#include "hdf5.h"
#include "pugixml.hpp"
#include "constants.h"
#include "position.h"
#include "openmc/constants.h"
#include "openmc/position.h"
namespace openmc {

View file

@ -7,9 +7,9 @@
#include <cmath>
#include <cstdlib>
#include "constants.h"
#include "position.h"
#include "random_lcg.h"
#include "openmc/constants.h"
#include "openmc/position.h"
#include "openmc/random_lcg.h"
namespace openmc {
@ -93,7 +93,7 @@ extern "C" void calc_rn_c(int n, const double uvw[3], double rn[]);
extern "C" void calc_zn_c(int n, double rho, double phi, double zn[]);
//==============================================================================
//! Calculate only the even order components of n-th order modified Zernike
//! Calculate only the even order components of n-th order modified Zernike
//! polynomial moment with azimuthal dependency m = 0 for a given radial (rho)
//! location on the unit disk.
//!

View file

@ -1,5 +1,5 @@
#ifndef MESSAGE_PASSING_H
#define MESSAGE_PASSING_H
#ifndef OPENMC_MESSAGE_PASSING_H
#define OPENMC_MESSAGE_PASSING_H
#ifdef OPENMC_MPI
#include "mpi.h"
@ -19,4 +19,4 @@ namespace mpi {
} // namespace mpi
} // namespace openmc
#endif // MESSAGE_PASSING_H
#endif // OPENMC_MESSAGE_PASSING_H

View file

@ -1,15 +1,15 @@
//! \file mgxs.h
//! A collection of classes for Multi-Group Cross Section data
#ifndef MGXS_H
#define MGXS_H
#ifndef OPENMC_MGXS_H
#define OPENMC_MGXS_H
#include <string>
#include <vector>
#include "constants.h"
#include "hdf5_interface.h"
#include "xsdata.h"
#include "openmc/constants.h"
#include "openmc/hdf5_interface.h"
#include "openmc/xsdata.h"
namespace openmc {
@ -202,4 +202,4 @@ class Mgxs {
};
} // namespace openmc
#endif // MGXS_H
#endif // OPENMC_MGXS_H

View file

@ -1,8 +1,8 @@
//! \file mgxs_interface.h
//! A collection of C interfaces to the C++ Mgxs class
#ifndef MGXS_INTERFACE_H
#define MGXS_INTERFACE_H
#ifndef OPENMC_MGXS_INTERFACE_H
#define OPENMC_MGXS_INTERFACE_H
#include "hdf5_interface.h"
#include "mgxs.h"
@ -76,4 +76,4 @@ extern "C" double
get_awr_c(int index);
} // namespace openmc
#endif // MGXS_INTERFACE_H
#endif // OPENMC_MGXS_INTERFACE_H

View file

@ -1,7 +1,7 @@
#ifndef OPENMC_NUCLIDE_H
#define OPENMC_NUCLIDE_H
#include "constants.h"
#include "openmc/constants.h"
namespace openmc {

View file

@ -7,7 +7,7 @@
#include <cstdint>
#include <array>
#include "openmc.h"
#include "openmc/capi.h"
namespace openmc {

View file

@ -1,5 +1,5 @@
#ifndef PLOT_H
#define PLOT_H
#ifndef OPENMC_PLOT_H
#define OPENMC_PLOT_H
#include "hdf5.h"
@ -12,4 +12,4 @@ extern "C" void voxel_write_slice(int x, hid_t dspace, hid_t dset,
extern "C" void voxel_finalize(hid_t dspace, hid_t dset, hid_t memspace);
} // namespace openmc
#endif // PLOT_H
#endif // OPENMC_PLOT_H

View file

@ -1,5 +1,5 @@
#ifndef RANDOM_LCG_H
#define RANDOM_LCG_H
#ifndef OPENMC_RANDOM_LCG_H
#define OPENMC_RANDOM_LCG_H
#include <cstdint>
@ -93,4 +93,4 @@ extern "C" int64_t openmc_get_seed();
extern "C" void openmc_set_seed(int64_t new_seed);
} // namespace openmc
#endif // RANDOM_LCG_H
#endif // OPENMC_RANDOM_LCG_H

View file

@ -7,7 +7,8 @@
#include <vector>
#include "hdf5.h"
#include "reaction_product.h"
#include "openmc/reaction_product.h"
namespace openmc {

View file

@ -8,9 +8,10 @@
#include <vector> // for vector
#include "hdf5.h"
#include "angle_energy.h"
#include "endf.h"
#include "particle.h"
#include "openmc/angle_energy.h"
#include "openmc/endf.h"
#include "openmc/particle.h"
namespace openmc {

View file

@ -1,11 +1,13 @@
//! \file scattdata.h
//! A collection of multi-group scattering data classes
#ifndef SCATTDATA_H
#define SCATTDATA_H
#ifndef OPENMC_SCATTDATA_H
#define OPENMC_SCATTDATA_H
#include <vector>
#include "openmc/constants.h"
namespace openmc {
// forward declarations so we can name our friend functions
@ -257,4 +259,4 @@ convert_legendre_to_tabular(ScattDataLegendre& leg, ScattDataTabular& tab,
int n_mu);
} // namespace openmc
#endif // SCATTDATA_H
#endif // OPENMC_SCATTDATA_H

View file

@ -8,9 +8,10 @@
#include "hdf5.h"
#include "xtensor/xtensor.hpp"
#include "angle_energy.h"
#include "endf.h"
#include "distribution.h"
#include "openmc/angle_energy.h"
#include "openmc/endf.h"
#include "openmc/distribution.h"
namespace openmc {

View file

@ -8,9 +8,10 @@
#include "hdf5.h"
#include "xtensor/xtensor.hpp"
#include "angle_energy.h"
#include "constants.h"
#include "endf.h"
#include "openmc/angle_energy.h"
#include "openmc/constants.h"
#include "openmc/endf.h"
namespace openmc {

View file

@ -6,7 +6,7 @@
#include "hdf5.h"
#include "angle_energy.h"
#include "openmc/angle_energy.h"
namespace openmc {

View file

@ -8,9 +8,10 @@
#include <vector>
#include "hdf5.h"
#include "angle_energy.h"
#include "distribution_angle.h"
#include "distribution_energy.h"
#include "openmc/angle_energy.h"
#include "openmc/distribution_angle.h"
#include "openmc/distribution_energy.h"
namespace openmc {

View file

@ -1,5 +1,5 @@
#ifndef SIMULATION_H
#define SIMULATION_H
#ifndef OPENMC_SIMULATION_H
#define OPENMC_SIMULATION_H
#include <cstdint>
@ -10,4 +10,4 @@ extern "C" int openmc_n_lost_particles;
#pragma omp threadprivate(openmc_current_work)
#endif // SIMULATION_H
#endif // OPENMC_SIMULATION_H

View file

@ -1,10 +1,11 @@
#ifndef STATE_POINT_H
#define STATE_POINT_H
#ifndef OPENMC_STATE_POINT_H
#define OPENMC_STATE_POINT_H
#include <cstdint>
#include "hdf5.h"
#include "openmc.h"
#include "openmc/capi.h"
namespace openmc {
@ -14,4 +15,4 @@ extern "C" void read_source_bank(hid_t group_id, int64_t* work_index,
Bank* source_bank);
} // namespace openmc
#endif // STATE_POINT_H
#endif // OPENMC_STATE_POINT_H

View file

@ -1,8 +1,8 @@
//! \file string_functions.h
//! A collection of helper routines for C-strings and STL strings
#ifndef STRING_FUNCTIONS_H
#define STRING_FUNCTIONS_H
#ifndef OPENMC_STRING_FUNCTIONS_H
#define OPENMC_STRING_FUNCTIONS_H
#include <string>

View file

@ -9,8 +9,8 @@
#include "hdf5.h"
#include "pugixml.hpp"
#include "constants.h"
#include "position.h"
#include "openmc/constants.h"
#include "openmc/position.h"
namespace openmc {

View file

@ -1,5 +1,5 @@
#ifndef OPENMC_THERMAL_SCATTERING_H
#define OPENMC_THERMAL_SCATTERING_H
#ifndef OPENMC_THERMAL_H
#define OPENMC_THERMAL_H
#include <cstddef>
#include <string>
@ -7,8 +7,8 @@
#include "xtensor/xtensor.hpp"
#include "hdf5_interface.h"
#include "nuclide.h"
#include "openmc/hdf5_interface.h"
#include "openmc/nuclide.h"
namespace openmc {
@ -144,4 +144,4 @@ extern "C" {
} // namespace openmc
#endif // OPENMC_THERMAL_SCATTERING_H
#endif // OPENMC_THERMAL_H

View file

@ -1,5 +1,5 @@
#ifndef XML_INTERFACE_H
#define XML_INTERFACE_H
#ifndef OPENMC_XML_INTERFACE_H
#define OPENMC_XML_INTERFACE_H
#include <sstream> // for stringstream
#include <string>
@ -39,4 +39,4 @@ std::vector<T> get_node_array(pugi::xml_node node, const char* name,
}
} // namespace openmc
#endif // XML_INTERFACE_H
#endif // OPENMC_XML_INTERFACE_H

View file

@ -1,14 +1,14 @@
//! \file xsdata.h
//! A collection of classes for containing the Multi-Group Cross Section data
#ifndef XSDATA_H
#define XSDATA_H
#ifndef OPENMC_XSDATA_H
#define OPENMC_XSDATA_H
#include <memory>
#include <vector>
#include "hdf5_interface.h"
#include "scattdata.h"
#include "openmc/hdf5_interface.h"
#include "openmc/scattdata.h"
namespace openmc {
@ -115,4 +115,4 @@ class XsData {
} //namespace openmc
#endif // XSDATA_H
#endif // OPENMC_XSDATA_H

View file

@ -1,17 +1,17 @@
#include "cell.h"
#include "openmc/cell.h"
#include <cmath>
#include <sstream>
#include <string>
#include "constants.h"
#include "error.h"
#include "hdf5_interface.h"
#include "lattice.h"
#include "material.h"
#include "openmc.h"
#include "surface.h"
#include "xml_interface.h"
#include "openmc/capi.h"
#include "openmc/constants.h"
#include "openmc/error.h"
#include "openmc/hdf5_interface.h"
#include "openmc/lattice.h"
#include "openmc/material.h"
#include "openmc/surface.h"
#include "openmc/xml_interface.h"
namespace openmc {

View file

@ -1,4 +1,4 @@
#include "distribution.h"
#include "openmc/distribution.h"
#include <algorithm> // for copy
#include <cmath> // for sqrt, floor, max
@ -6,10 +6,10 @@
#include <numeric> // for accumulate
#include <string> // for string, stod
#include "error.h"
#include "math_functions.h"
#include "random_lcg.h"
#include "xml_interface.h"
#include "openmc/error.h"
#include "openmc/math_functions.h"
#include "openmc/random_lcg.h"
#include "openmc/xml_interface.h"
namespace openmc {

View file

@ -1,15 +1,16 @@
#include "distribution_angle.h"
#include "openmc/distribution_angle.h"
#include <cmath> // for abs, copysign
#include <vector> // for vector
#include "endf.h"
#include "hdf5_interface.h"
#include "random_lcg.h"
#include "search.h"
#include "xtensor/xarray.hpp"
#include "xtensor/xview.hpp"
#include "openmc/endf.h"
#include "openmc/hdf5_interface.h"
#include "openmc/random_lcg.h"
#include "openmc/search.h"
namespace openmc {
//==============================================================================

View file

@ -1,16 +1,17 @@
#include "distribution_energy.h"
#include "openmc/distribution_energy.h"
#include <algorithm> // for max, min, copy, move
#include <cstddef> // for size_t
#include <iterator> // for back_inserter
#include "endf.h"
#include "hdf5_interface.h"
#include "math_functions.h"
#include "random_lcg.h"
#include "search.h"
#include "xtensor/xview.hpp"
#include "openmc/endf.h"
#include "openmc/hdf5_interface.h"
#include "openmc/math_functions.h"
#include "openmc/random_lcg.h"
#include "openmc/search.h"
namespace openmc {
//==============================================================================

View file

@ -1,11 +1,11 @@
#include "distribution_multi.h"
#include "openmc/distribution_multi.h"
#include <algorithm> // for move
#include <cmath> // for sqrt, sin, cos, max
#include "constants.h"
#include "math_functions.h"
#include "random_lcg.h"
#include "openmc/constants.h"
#include "openmc/math_functions.h"
#include "openmc/random_lcg.h"
namespace openmc {

View file

@ -1,8 +1,8 @@
#include "distribution_spatial.h"
#include "openmc/distribution_spatial.h"
#include "error.h"
#include "random_lcg.h"
#include "xml_interface.h"
#include "openmc/error.h"
#include "openmc/random_lcg.h"
#include "openmc/xml_interface.h"
namespace openmc {

View file

@ -1,15 +1,16 @@
#include "endf.h"
#include "openmc/endf.h"
#include <algorithm> // for copy
#include <cmath> // for log, exp
#include <iterator> // for back_inserter
#include "constants.h"
#include "hdf5_interface.h"
#include "search.h"
#include "xtensor/xarray.hpp"
#include "xtensor/xview.hpp"
#include "openmc/constants.h"
#include "openmc/hdf5_interface.h"
#include "openmc/search.h"
namespace openmc {
//==============================================================================

View file

@ -1,6 +1,6 @@
#include "finalize.h"
#include "openmc/finalize.h"
#include "message_passing.h"
#include "openmc/message_passing.h"
void openmc_free_bank()
{

View file

@ -1,6 +0,0 @@
#ifndef FINALIZE_H
#define FINALIZE_H
extern "C" void openmc_free_bank();
#endif // FINALIZE_H

View file

@ -1,14 +1,14 @@
#include "geometry_aux.h"
#include "openmc/geometry_aux.h"
#include <algorithm> // for std::max
#include <sstream>
#include <unordered_set>
#include "cell.h"
#include "constants.h"
#include "error.h"
#include "lattice.h"
#include "material.h"
#include "openmc/cell.h"
#include "openmc/constants.h"
#include "openmc/error.h"
#include "openmc/lattice.h"
#include "openmc/material.h"
namespace openmc {

View file

@ -1,4 +1,4 @@
#include "hdf5_interface.h"
#include "openmc/hdf5_interface.h"
#include <array>
#include <cstring>
@ -9,9 +9,9 @@
#include "hdf5_hl.h"
#ifdef OPENMC_MPI
#include "mpi.h"
#include "message_passing.h"
#include "openmc/message_passing.h"
#endif
#include "error.h"
#include "openmc/error.h"
namespace openmc {

View file

@ -1,4 +1,4 @@
#include "initialize.h"
#include "openmc/initialize.h"
#include <cstddef>
#include <cstring>
@ -6,15 +6,16 @@
#include <sstream>
#include <string>
#include "error.h"
#include "hdf5_interface.h"
#include "message_passing.h"
#include "openmc.h"
#include "settings.h"
#ifdef _OPENMP
#include "omp.h"
#endif
#include "openmc/capi.h"
#include "openmc/error.h"
#include "openmc/hdf5_interface.h"
#include "openmc/message_passing.h"
#include "openmc/settings.h"
// data/functions from Fortran side
extern "C" void print_usage();
extern "C" void print_version();

View file

@ -1,15 +1,15 @@
#include "lattice.h"
#include "openmc/lattice.h"
#include <cmath>
#include <sstream>
#include <vector>
#include "cell.h"
#include "error.h"
#include "geometry_aux.h"
#include "hdf5_interface.h"
#include "string_utils.h"
#include "xml_interface.h"
#include "openmc/cell.h"
#include "openmc/error.h"
#include "openmc/geometry_aux.h"
#include "openmc/hdf5_interface.h"
#include "openmc/string_utils.h"
#include "openmc/xml_interface.h"
namespace openmc {

View file

@ -1,8 +1,8 @@
#include "error.h"
#ifdef OPENMC_MPI
#include "mpi.h"
#endif
#include "openmc.h"
#include "openmc/capi.h"
#include "openmc/error.h"
int main(int argc, char* argv[]) {

View file

@ -1,10 +1,10 @@
#include "material.h"
#include "openmc/material.h"
#include <string>
#include <sstream>
#include "error.h"
#include "xml_interface.h"
#include "openmc/error.h"
#include "openmc/xml_interface.h"
namespace openmc {

View file

@ -1,4 +1,4 @@
#include "math_functions.h"
#include "openmc/math_functions.h"
namespace openmc {
@ -608,7 +608,7 @@ void calc_zn_rad_c(int n, double rho, double zn_rad[]) {
double k2 = 2 * p * (p - 1) * (p - 2);
double k3 = -q * q * (p - 1) - p * (p - 1) * (p - 2);
double k4 = (-p * (p + q - 2) * (p - q - 2)) / 2.;
zn_rad[index] =
zn_rad[index] =
((k2 * rho * rho + k3) * zn_rad[index-1] + k4 * zn_rad[index-2]) / k1;
}
}

View file

@ -1,4 +1,4 @@
#include "message_passing.h"
#include "openmc/message_passing.h"
namespace openmc {
namespace mpi {

View file

@ -1,17 +1,18 @@
#include "openmc/mgxs.h"
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <valarray>
#ifdef _OPENMP
# include <omp.h>
#endif
#ifdef _OPENMP
#include <omp.h>
#endif
#include "error.h"
#include "math_functions.h"
#include "random_lcg.h"
#include "string_functions.h"
#include "mgxs.h"
#include "openmc/error.h"
#include "openmc/math_functions.h"
#include "openmc/random_lcg.h"
#include "openmc/string_functions.h"
namespace openmc {
@ -709,4 +710,4 @@ Mgxs::set_angle_index(const double uvw[3])
}
}
} // namespace openmc
} // namespace openmc

View file

@ -1,8 +1,9 @@
#include "openmc/mgxs_interface.h"
#include <string>
#include "error.h"
#include "math_functions.h"
#include "mgxs_interface.h"
#include "openmc/error.h"
#include "openmc/math_functions.h"
namespace openmc {
@ -226,4 +227,4 @@ get_awr_c(int index)
return nuclides_MG[index - 1].awr;
}
} // namespace openmc
} // namespace openmc

View file

@ -1,14 +1,14 @@
#include "particle.h"
#include "openmc/particle.h"
#include <algorithm>
#include <sstream>
#include "constants.h"
#include "error.h"
#include "hdf5_interface.h"
#include "openmc.h"
#include "settings.h"
#include "simulation.h"
#include "openmc/capi.h"
#include "openmc/constants.h"
#include "openmc/error.h"
#include "openmc/hdf5_interface.h"
#include "openmc/settings.h"
#include "openmc/simulation.h"
namespace openmc {

View file

@ -1,4 +1,4 @@
#include "plot.h"
#include "openmc/plot.h"
namespace openmc {

View file

@ -1,4 +1,4 @@
#include "position.h"
#include "openmc/position.h"
namespace openmc {

View file

@ -1,4 +1,5 @@
#include "random_lcg.h"
#include "openmc/random_lcg.h"
#include <cmath>

View file

@ -1,12 +1,12 @@
#include "reaction.h"
#include "openmc/reaction.h"
#include <string>
#include <utility> // for move
#include "hdf5_interface.h"
#include "endf.h"
#include "random_lcg.h"
#include "secondary_uncorrelated.h"
#include "openmc/hdf5_interface.h"
#include "openmc/endf.h"
#include "openmc/random_lcg.h"
#include "openmc/secondary_uncorrelated.h"
namespace openmc {

View file

@ -1,14 +1,14 @@
#include "reaction_product.h"
#include "openmc/reaction_product.h"
#include <memory> // for unique_ptr
#include <string> // for string
#include "hdf5_interface.h"
#include "random_lcg.h"
#include "secondary_correlated.h"
#include "secondary_kalbach.h"
#include "secondary_nbody.h"
#include "secondary_uncorrelated.h"
#include "openmc/hdf5_interface.h"
#include "openmc/random_lcg.h"
#include "openmc/secondary_correlated.h"
#include "openmc/secondary_kalbach.h"
#include "openmc/secondary_nbody.h"
#include "openmc/secondary_uncorrelated.h"
namespace openmc {

View file

@ -1,12 +1,13 @@
#include "openmc/scattdata.h"
#include <algorithm>
#include <numeric>
#include <cmath>
#include "constants.h"
#include "math_functions.h"
#include "random_lcg.h"
#include "error.h"
#include "scattdata.h"
#include "openmc/constants.h"
#include "openmc/error.h"
#include "openmc/math_functions.h"
#include "openmc/random_lcg.h"
namespace openmc {

View file

@ -1,16 +1,17 @@
#include "secondary_correlated.h"
#include "openmc/secondary_correlated.h"
#include <algorithm> // for copy
#include <cmath>
#include <cstddef> // for size_t
#include <iterator> // for back_inserter
#include "hdf5_interface.h"
#include "xtensor/xarray.hpp"
#include "xtensor/xview.hpp"
#include "endf.h"
#include "random_lcg.h"
#include "search.h"
#include "openmc/hdf5_interface.h"
#include "openmc/endf.h"
#include "openmc/random_lcg.h"
#include "openmc/search.h"
namespace openmc {

View file

@ -1,4 +1,4 @@
#include "secondary_kalbach.h"
#include "openmc/secondary_kalbach.h"
#include <algorithm> // for copy, move
#include <cmath> // for log, sqrt, sinh
@ -8,9 +8,10 @@
#include "xtensor/xarray.hpp"
#include "xtensor/xview.hpp"
#include "hdf5_interface.h"
#include "random_lcg.h"
#include "search.h"
#include "openmc/hdf5_interface.h"
#include "openmc/random_lcg.h"
#include "openmc/search.h"
namespace openmc {

View file

@ -1,11 +1,11 @@
#include "secondary_nbody.h"
#include "openmc/secondary_nbody.h"
#include <cmath> // for log
#include "constants.h"
#include "hdf5_interface.h"
#include "math_functions.h"
#include "random_lcg.h"
#include "openmc/constants.h"
#include "openmc/hdf5_interface.h"
#include "openmc/math_functions.h"
#include "openmc/random_lcg.h"
namespace openmc {

View file

@ -1,11 +1,11 @@
#include "secondary_uncorrelated.h"
#include "openmc/secondary_uncorrelated.h"
#include <sstream> // for stringstream
#include <string> // for string
#include "error.h"
#include "hdf5_interface.h"
#include "random_lcg.h"
#include "openmc/error.h"
#include "openmc/hdf5_interface.h"
#include "openmc/random_lcg.h"
namespace openmc {

View file

@ -1,10 +1,10 @@
#include "settings.h"
#include "openmc/settings.h"
#include "constants.h"
#include "error.h"
#include "openmc.h"
#include "string_utils.h"
#include "xml_interface.h"
#include "openmc/capi.h"
#include "openmc/constants.h"
#include "openmc/error.h"
#include "openmc/string_utils.h"
#include "openmc/xml_interface.h"
namespace openmc {

View file

@ -1,4 +1,4 @@
#include "openmc.h"
#include "openmc/capi.h"
// OPENMC_RUN encompasses all the main logic where iterations are performed
// over the batches, generations, and histories in a fixed source or k-eigenvalue

View file

@ -1,4 +1,4 @@
#include "state_point.h"
#include "openmc/state_point.h"
#include <algorithm>
#include <vector>
@ -6,9 +6,10 @@
#ifdef OPENMC_MPI
#include "mpi.h"
#endif
#include "error.h"
#include "message_passing.h"
#include "openmc.h"
#include "openmc/capi.h"
#include "openmc/error.h"
#include "openmc/message_passing.h"
namespace openmc {

View file

@ -1,4 +1,4 @@
#include "string_functions.h"
#include "openmc/string_functions.h"
namespace openmc {
@ -27,4 +27,4 @@ void to_lower(std::string& str)
for (int i = 0; i < str.size(); i++) str[i] = std::tolower(str[i]);
}
} // namespace openmc
} // namespace openmc

View file

@ -1,13 +1,13 @@
#include "surface.h"
#include "openmc/surface.h"
#include <array>
#include <cmath>
#include <sstream>
#include <utility>
#include "error.h"
#include "hdf5_interface.h"
#include "xml_interface.h"
#include "openmc/error.h"
#include "openmc/hdf5_interface.h"
#include "openmc/xml_interface.h"
namespace openmc {

View file

@ -1,4 +1,4 @@
#include "thermal.h"
#include "openmc/thermal.h"
#include <algorithm> // for sort, move, min, max, find
#include <cmath> // for round, sqrt, fabs
@ -11,12 +11,12 @@
#include "xtensor/xtensor.hpp"
#include "xtensor/xview.hpp"
#include "constants.h"
#include "error.h"
#include "random_lcg.h"
#include "search.h"
#include "secondary_correlated.h"
#include "settings.h"
#include "openmc/constants.h"
#include "openmc/error.h"
#include "openmc/random_lcg.h"
#include "openmc/search.h"
#include "openmc/secondary_correlated.h"
#include "openmc/settings.h"
namespace openmc {

View file

@ -1,9 +1,9 @@
#include "xml_interface.h"
#include "openmc/xml_interface.h"
#include <algorithm> // for transform
#include <sstream>
#include "error.h"
#include "openmc/error.h"
namespace openmc {

View file

@ -1,13 +1,14 @@
#include "openmc/xsdata.h"
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <numeric>
#include "constants.h"
#include "error.h"
#include "math_functions.h"
#include "random_lcg.h"
#include "xsdata.h"
#include "openmc/constants.h"
#include "openmc/error.h"
#include "openmc/math_functions.h"
#include "openmc/random_lcg.h"
namespace openmc {