Delayed mpi4py import until the user clearly indicated intent to use a communicator (or they already have created one and thus have already imported it); corrected versionchanged doc statements to include comments about what changed; added stackoverflow reference

This commit is contained in:
agnelson 2021-10-01 09:21:41 -05:00
parent e1365bd036
commit e4476fc0b7
12 changed files with 102 additions and 175 deletions

View file

@ -88,7 +88,6 @@ int openmc_material_set_densities(
int openmc_material_set_id(int32_t index, int32_t id);
int openmc_material_get_name(int32_t index, const char** name);
int openmc_material_set_name(int32_t index, const char* name);
int openmc_material_set_temperature(int32_t index, double temperature);
int openmc_material_set_volume(int32_t index, double volume);
int openmc_material_filter_get_bins(
int32_t index, const int32_t** bins, size_t* n);

View file

@ -158,10 +158,6 @@ public:
double density_; //!< Total atom density in [atom/b-cm]
double density_gpcc_; //!< Total atom density in [g/cm^3]
double volume_ {-1.0}; //!< Volume in [cm^3]
double temperature_ {-1}; //!< Default temperature for material
//!< A negative indicates no default
//!< temperature was specified.
bool fissionable_ {
false}; //!< Does this material contain fissionable nuclides
bool depletable_ {false}; //!< Is the material depletable?
@ -199,6 +195,10 @@ private:
// Private data members
gsl::index index_;
//! \brief Default temperature for cells containing this material.
//!
//! A negative value indicates no default temperature was specified.
double temperature_ {-1};
};
//==============================================================================