Apply clang-format

This commit is contained in:
Jose Ignacio Marquez Damian 2022-09-26 11:30:39 +02:00 committed by Thomas Kittelmann
parent 2e19260dea
commit 5afcc9e49b
6 changed files with 50 additions and 36 deletions

View file

@ -158,15 +158,18 @@ public:
#ifdef NCRYSTAL
//! Get pointer to NCrystal material object
//! \return Pointer to NCrystal material object
std::shared_ptr<const NCrystal::ProcImpl::Process> ncrystal_mat() const {return ncrystal_mat_; };
std::shared_ptr<const NCrystal::ProcImpl::Process> ncrystal_mat() const
{
return ncrystal_mat_;
};
#endif
//----------------------------------------------------------------------------
// Data
int32_t id_ {C_NONE}; //!< Unique ID
std::string name_; //!< Name of material
vector<int> nuclide_; //!< Indices in nuclides vector
vector<int> element_; //!< Indices in elements vector
int32_t id_ {C_NONE}; //!< Unique ID
std::string name_; //!< Name of material
vector<int> nuclide_; //!< Indices in nuclides vector
vector<int> element_; //!< Indices in elements vector
#ifdef NCRYSTAL
std::string ncrystal_cfg_; //!< NCrystal configuration string
std::shared_ptr<const NCrystal::ProcImpl::Process> ncrystal_mat_;

View file

@ -111,14 +111,17 @@ void split_particle(Particle& p);
//==============================================================================
class NCrystalRNGWrapper : public NCrystal::RNGStream {
uint64_t* openmc_seed_;
public:
constexpr NCrystalRNGWrapper(uint64_t* seed) noexcept : openmc_seed_(seed) {}
protected:
double actualGenerate() override {
return std::max<double>( std::numeric_limits<double>::min(), prn(openmc_seed_) );
}
uint64_t* openmc_seed_;
public:
constexpr NCrystalRNGWrapper(uint64_t* seed) noexcept : openmc_seed_(seed) {}
protected:
double actualGenerate() override
{
return std::max<double>(
std::numeric_limits<double>::min(), prn(openmc_seed_));
}
};
#endif

View file

@ -121,7 +121,8 @@ extern "C" int verbosity; //!< How verbose to make output
extern double weight_cutoff; //!< Weight cutoff for Russian roulette
extern double weight_survive; //!< Survival weight after Russian roulette
#ifdef NCRYSTAL
extern double ncrystal_max_energy; // Energy in eV to switch between NCrystal and ENDF
extern double
ncrystal_max_energy; //!< Energy in eV to switch between NCrystal and ENDF
#endif
} // namespace settings