Fix pointer placement on uint64_t

This commit is contained in:
Paul Romano 2019-11-27 07:04:11 -06:00
parent 60015e5c5c
commit eca3ce33d2
41 changed files with 141 additions and 141 deletions

View file

@ -14,7 +14,7 @@ namespace openmc {
class AngleEnergy {
public:
virtual void sample(double E_in, double& E_out, double& mu, uint64_t * prn_seeds,
virtual void sample(double E_in, double& E_out, double& mu, uint64_t* prn_seeds,
int stream) const = 0;
virtual ~AngleEnergy() = default;
};

View file

@ -21,7 +21,7 @@ namespace openmc {
class Distribution {
public:
virtual ~Distribution() = default;
virtual double sample(uint64_t * prn_seeds, int stream) const = 0;
virtual double sample(uint64_t* prn_seeds, int stream) const = 0;
};
//==============================================================================
@ -37,7 +37,7 @@ public:
//! \param prn_seeds Array of pseudorandom number seeds
//! \param stream Pseudorandom stream index
//! \return Sampled value
double sample(uint64_t * prn_seeds, int stream) const;
double sample(uint64_t* prn_seeds, int stream) const;
// Properties
const std::vector<double>& x() const { return x_; }
@ -63,7 +63,7 @@ public:
//! \param prn_seeds Array of pseudorandom number seeds
//! \param stream Pseudorandom stream index
//! \return Sampled value
double sample(uint64_t * prn_seeds, int stream) const;
double sample(uint64_t* prn_seeds, int stream) const;
private:
double a_; //!< Lower bound of distribution
double b_; //!< Upper bound of distribution
@ -82,7 +82,7 @@ public:
//! \param prn_seeds Array of pseudorandom number seeds
//! \param stream Pseudorandom stream index
//! \return Sampled value
double sample(uint64_t * prn_seeds, int stream) const;
double sample(uint64_t* prn_seeds, int stream) const;
private:
double theta_; //!< Factor in exponential [eV]
};
@ -100,7 +100,7 @@ public:
//! \param prn_seeds Array of pseudorandom number seeds
//! \param stream Pseudorandom stream index
//! \return Sampled value
double sample(uint64_t * prn_seeds, int stream) const;
double sample(uint64_t* prn_seeds, int stream) const;
private:
double a_; //!< Factor in exponential [eV]
double b_; //!< Factor in square root [1/eV]
@ -119,7 +119,7 @@ public:
//! \param prn_seeds Array of pseudorandom number seeds
//! \param stream Pseudorandom stream index
//! \return Sampled value
double sample(uint64_t * prn_seeds, int stream) const;
double sample(uint64_t* prn_seeds, int stream) const;
private:
double mean_value_; //!< middle of distribution [eV]
double std_dev_; //!< standard deviation [eV]
@ -139,7 +139,7 @@ public:
//! \param prn_seeds Array of pseudorandom number seeds
//! \param stream Pseudorandom stream index
//! \return Sampled value
double sample(uint64_t * prn_seeds, int stream) const;
double sample(uint64_t* prn_seeds, int stream) const;
private:
// example DT fusion m_rat = 5 (D = 2 + T = 3)
// ion temp = 20000 eV
@ -163,7 +163,7 @@ public:
//! \param prn_seeds Array of pseudorandom number seeds
//! \param stream Pseudorandom stream index
//! \return Sampled value
double sample(uint64_t * prn_seeds, int stream) const;
double sample(uint64_t* prn_seeds, int stream) const;
// x property
std::vector<double>& x() { return x_; }
@ -195,7 +195,7 @@ public:
//! \param prn_seeds Array of pseudorandom number seeds
//! \param stream Pseudorandom stream index
//! \return Sampled value
double sample(uint64_t * prn_seeds, int stream) const;
double sample(uint64_t* prn_seeds, int stream) const;
private:
std::vector<double> x_; //! Possible outcomes
};

View file

@ -26,7 +26,7 @@ public:
//! \param[inout] prn_seeds Array of pseudorandom number seeds
//! \param[in] stream Pseudorandom stream index
//! \return Cosine of the angle in the range [-1,1]
double sample(double E, uint64_t * prn_seeds, int stream) const;
double sample(double E, uint64_t* prn_seeds, int stream) const;
//! Determine whether angle distribution is empty
//! \return Whether distribution is empty

View file

@ -22,7 +22,7 @@ namespace openmc {
class EnergyDistribution {
public:
virtual double sample(double E, uint64_t * prn_seeds, int stream) const = 0;
virtual double sample(double E, uint64_t* prn_seeds, int stream) const = 0;
virtual ~EnergyDistribution() = default;
};
@ -39,7 +39,7 @@ public:
//! \param[inout] prn_seeds Pseudorandom number genererator seed array
//! \param[in] stream Pseudorandom number genererator stream index
//! \return Sampled energy in [eV]
double sample(double E, uint64_t * prn_seeds, int stream) const;
double sample(double E, uint64_t* prn_seeds, int stream) const;
private:
int primary_flag_; //!< Indicator of whether the photon is a primary or
//!< non-primary photon.
@ -60,7 +60,7 @@ public:
//! \param[inout] prn_seeds Pseudorandom number genererator seed array
//! \param[in] stream Pseudorandom number genererator stream index
//! \return Sampled energy in [eV]
double sample(double E, uint64_t * prn_seeds, int stream) const;
double sample(double E, uint64_t* prn_seeds, int stream) const;
private:
double threshold_; //!< Energy threshold in lab, (A + 1)/A * |Q|
double mass_ratio_; //!< (A/(A+1))^2
@ -81,7 +81,7 @@ public:
//! \param[inout] prn_seeds Pseudorandom number genererator seed array
//! \param[in] stream Pseudorandom number genererator stream index
//! \return Sampled energy in [eV]
double sample(double E, uint64_t * prn_seeds, int stream) const;
double sample(double E, uint64_t* prn_seeds, int stream) const;
private:
//! Outgoing energy for a single incoming energy
struct CTTable {
@ -112,7 +112,7 @@ public:
//! \param[inout] prn_seeds Pseudorandom number genererator seed array
//! \param[in] stream Pseudorandom number genererator stream index
//! \return Sampled energy in [eV]
double sample(double E, uint64_t * prn_seeds, int stream) const;
double sample(double E, uint64_t* prn_seeds, int stream) const;
private:
Tabulated1D theta_; //!< Incoming energy dependent parameter
double u_; //!< Restriction energy
@ -132,7 +132,7 @@ public:
//! \param[inout] prn_seeds Pseudorandom number genererator seed array
//! \param[in] stream Pseudorandom number genererator stream index
//! \return Sampled energy in [eV]
double sample(double E, uint64_t * prn_seeds, int stream) const;
double sample(double E, uint64_t* prn_seeds, int stream) const;
private:
Tabulated1D theta_; //!< Incoming energy dependent parameter
double u_; //!< Restriction energy
@ -152,7 +152,7 @@ public:
//! \param[inout] prn_seeds Pseudorandom number genererator seed array
//! \param[in] stream Pseudorandom number genererator stream index
//! \return Sampled energy in [eV]
double sample(double E, uint64_t * prn_seeds, int stream) const;
double sample(double E, uint64_t* prn_seeds, int stream) const;
private:
Tabulated1D a_; //!< Energy-dependent 'a' parameter
Tabulated1D b_; //!< Energy-dependent 'b' parameter

View file

@ -26,7 +26,7 @@ public:
//! \param prn_seeds Array of pseudorandom number seeds
//! \param stream Pseudorandom stream index
//! \return Direction sampled
virtual Direction sample(uint64_t * prn_seeds, int stream) const = 0;
virtual Direction sample(uint64_t* prn_seeds, int stream) const = 0;
Direction u_ref_ {0.0, 0.0, 1.0}; //!< reference direction
};
@ -44,7 +44,7 @@ public:
//! \param prn_seeds Array of pseudorandom number seeds
//! \param stream Pseudorandom stream index
//! \return Direction sampled
Direction sample(uint64_t * prn_seeds, int stream) const;
Direction sample(uint64_t* prn_seeds, int stream) const;
private:
UPtrDist mu_; //!< Distribution of polar angle
UPtrDist phi_; //!< Distribution of azimuthal angle
@ -62,7 +62,7 @@ public:
//! \param prn_seeds Array of pseudorandom number seeds
//! \param stream Pseudorandom stream index
//! \return Sampled direction
Direction sample(uint64_t * prn_seeds, int stream) const;
Direction sample(uint64_t* prn_seeds, int stream) const;
};
//==============================================================================
@ -78,7 +78,7 @@ public:
//! \param prn_seeds Array of pseudorandom number seeds
//! \param stream Pseudorandom stream index
//! \return Sampled direction
Direction sample(uint64_t * prn_seeds, int stream) const;
Direction sample(uint64_t* prn_seeds, int stream) const;
};
using UPtrAngle = std::unique_ptr<UnitSphereDistribution>;

View file

@ -17,7 +17,7 @@ public:
virtual ~SpatialDistribution() = default;
//! Sample a position from the distribution
virtual Position sample(uint64_t * prn_seeds, int stream) const = 0;
virtual Position sample(uint64_t* prn_seeds, int stream) const = 0;
};
//==============================================================================
@ -32,7 +32,7 @@ public:
//! \param prn_seeds Array of pseudorandom number seeds
//! \param stream Pseudorandom stream index
//! \return Sampled position
Position sample(uint64_t * prn_seeds, int stream) const;
Position sample(uint64_t* prn_seeds, int stream) const;
private:
UPtrDist x_; //!< Distribution of x coordinates
UPtrDist y_; //!< Distribution of y coordinates
@ -51,7 +51,7 @@ public:
//! \param prn_seeds Array of pseudorandom number seeds
//! \param stream Pseudorandom stream index
//! \return Sampled position
Position sample(uint64_t * prn_seeds, int stream) const;
Position sample(uint64_t* prn_seeds, int stream) const;
private:
UPtrDist r_; //!< Distribution of r coordinates
UPtrDist theta_; //!< Distribution of theta coordinates
@ -71,7 +71,7 @@ public:
//! \param prn_seeds Array of pseudorandom number seeds
//! \param stream Pseudorandom stream index
//! \return Sampled position
Position sample(uint64_t * prn_seeds, int stream) const;
Position sample(uint64_t* prn_seeds, int stream) const;
// Properties
bool only_fissionable() const { return only_fissionable_; }
@ -95,7 +95,7 @@ public:
//! \param prn_seeds Array of pseudorandom number seeds
//! \param stream Pseudorandom stream index
//! \return Sampled position
Position sample(uint64_t * prn_seeds, int stream) const;
Position sample(uint64_t* prn_seeds, int stream) const;
private:
Position r_; //!< Single position at which sites are generated
};

View file

@ -134,10 +134,10 @@ extern "C" void calc_zn_rad(int n, double rho, double zn_rad[]);
//==============================================================================
extern "C" void rotate_angle_c(double uvw[3], double mu, const double* phi,
uint64_t * prn_seeds, int stream);
uint64_t* prn_seeds, int stream);
Direction rotate_angle(Direction u, double mu, const double* phi,
uint64_t * prn_streams, int stream);
uint64_t* prn_streams, int stream);
//==============================================================================
//! Samples an energy from the Maxwell fission distribution based on a direct
@ -153,7 +153,7 @@ Direction rotate_angle(Direction u, double mu, const double* phi,
//! \return The sampled outgoing energy
//==============================================================================
extern "C" double maxwell_spectrum(double T, uint64_t * prn_seeds, int stream);
extern "C" double maxwell_spectrum(double T, uint64_t* prn_seeds, int stream);
//==============================================================================
//! Samples an energy from a Watt energy-dependent fission distribution.
@ -170,7 +170,7 @@ extern "C" double maxwell_spectrum(double T, uint64_t * prn_seeds, int stream);
//! \return The sampled outgoing energy
//==============================================================================
extern "C" double watt_spectrum(double a, double b, uint64_t * prn_seeds, int stream);
extern "C" double watt_spectrum(double a, double b, uint64_t* prn_seeds, int stream);
//==============================================================================
//! Samples an energy from the Gaussian energy-dependent fission distribution.
@ -188,7 +188,7 @@ extern "C" double watt_spectrum(double a, double b, uint64_t * prn_seeds, int st
//! @result The sampled outgoing energy
//==============================================================================
extern "C" double normal_variate(double mean, double std_dev, uint64_t * prn_seeds,
extern "C" double normal_variate(double mean, double std_dev, uint64_t* prn_seeds,
int stream);
//==============================================================================
@ -207,7 +207,7 @@ extern "C" double normal_variate(double mean, double std_dev, uint64_t * prn_see
//==============================================================================
extern "C" double muir_spectrum(double e0, double m_rat, double kt,
uint64_t * prn_seeds, int stream);
uint64_t* prn_seeds, int stream);
//==============================================================================
//! Doppler broadens the windowed multipole curvefit.

View file

@ -157,7 +157,7 @@ class Mgxs {
//! @param prn_seeds Pseudorandom seed array.
//! @param stream Pseudorandom stream index.
void
sample_fission_energy(int gin, int& dg, int& gout, uint64_t * prn_seeds, int stream);
sample_fission_energy(int gin, int& dg, int& gout, uint64_t* prn_seeds, int stream);
//! \brief Samples the outgoing energy and angle from a scatter event.
//!
@ -168,7 +168,7 @@ class Mgxs {
//! @param prn_seeds Array of pseudorandom stream seeds
//! @param stream Pseudorandom stream index
void
sample_scatter(int gin, int& gout, double& mu, double& wgt, uint64_t * prn_seeds,
sample_scatter(int gin, int& gout, double& mu, double& wgt, uint64_t* prn_seeds,
int stream);
//! \brief Calculates cross section quantities needed for tracking.

View file

@ -45,12 +45,12 @@ public:
void calculate_xs(Particle& p) const;
void compton_scatter(double alpha, bool doppler, double* alpha_out,
double* mu, int* i_shell, uint64_t * prn_seeds, int stream) const;
double* mu, int* i_shell, uint64_t* prn_seeds, int stream) const;
double rayleigh_scatter(double alpha, uint64_t * prn_seeds, int stream) const;
double rayleigh_scatter(double alpha, uint64_t* prn_seeds, int stream) const;
void pair_production(double alpha, double* E_electron, double* E_positron,
double* mu_electron, double* mu_positron, uint64_t * prn_seeds, int stream) const;
double* mu_electron, double* mu_positron, uint64_t* prn_seeds, int stream) const;
void atomic_relaxation(const ElectronSubshell& shell, Particle& p) const;
@ -97,14 +97,14 @@ public:
private:
void compton_doppler(double alpha, double mu, double* E_out, int* i_shell,
uint64_t * prn_seeds, int stream) const;
uint64_t* prn_seeds, int stream) const;
};
//==============================================================================
// Non-member functions
//==============================================================================
std::pair<double, double> klein_nishina(double alpha, uint64_t * prn_seeds, int stream);
std::pair<double, double> klein_nishina(double alpha, uint64_t* prn_seeds, int stream);
void free_memory_photon();

View file

@ -72,17 +72,17 @@ void sab_scatter(int i_nuclide, int i_sab, Particle* p);
//! dependence of cross sections in treating resonance elastic scattering such
//! as the DBRC and a new, accelerated scheme are also implemented here.
Direction sample_target_velocity(const Nuclide* nuc, double E, Direction u,
Direction v_neut, double xs_eff, double kT, uint64_t * prn_seeds, int stream);
Direction v_neut, double xs_eff, double kT, uint64_t* prn_seeds, int stream);
//! samples a target velocity based on the free gas scattering formulation, used
//! by most Monte Carlo codes, in which cross section is assumed to be constant
//! in energy. Excellent documentation for this method can be found in
//! FRA-TM-123.
Direction sample_cxs_target_velocity(double awr, double E, Direction u, double kT,
uint64_t * prn_seeds, int stream);
uint64_t* prn_seeds, int stream);
void sample_fission_neutron(int i_nuclide, const Reaction* rx, double E_in,
Particle::Bank* site, uint64_t * prn_seeds, int stream);
Particle::Bank* site, uint64_t* prn_seeds, int stream);
//! handles all reactions with a single secondary neutron (other than fission),
//! i.e. level scattering, (n,np), (n,na), etc.

View file

@ -26,7 +26,7 @@ constexpr int64_t DEFAULT_SEED = 1;
//! @return A random number between 0 and 1
//==============================================================================
extern "C" double prn(uint64_t * seeds, int stream);
extern "C" double prn(uint64_t* seeds, int stream);
//==============================================================================
//! Generate a random number which is 'n' times ahead from the current seed.
@ -39,7 +39,7 @@ extern "C" double prn(uint64_t * seeds, int stream);
//! @return A random number between 0 and 1
//==============================================================================
extern "C" double future_prn(int64_t n, uint64_t * prn_seeds, int stream);
extern "C" double future_prn(int64_t n, uint64_t* prn_seeds, int stream);
//==============================================================================
//! Set the RNG seeds to unique values based on the ID of the particle.
@ -47,7 +47,7 @@ extern "C" double future_prn(int64_t n, uint64_t * prn_seeds, int stream);
//! @param id The particle ID
//==============================================================================
extern "C" void set_particle_seed(int64_t id, uint64_t * prn_seeds );
extern "C" void set_particle_seed(int64_t id, uint64_t* prn_seeds );
//==============================================================================
//! Advance the random number seed 'n' times from the current seed.
@ -56,7 +56,7 @@ extern "C" void set_particle_seed(int64_t id, uint64_t * prn_seeds );
//! @param n The number of RNG seeds to skip ahead by
//==============================================================================
extern "C" void advance_prn_seed(int64_t n, uint64_t * prn_seeds, int stream);
extern "C" void advance_prn_seed(int64_t n, uint64_t* prn_seeds, int stream);
//==============================================================================
//! Advance a random number seed 'n' times.

View file

@ -44,7 +44,7 @@ public:
//! \param[out] mu Outgoing cosine with respect to current direction
//! \param[inout] prn_seeds Pseudorandom array of stream seeds
//! \param[in] stream Psuedorandom stream index
void sample(double E_in, double& E_out, double& mu, uint64_t * prn_seeds,
void sample(double E_in, double& E_out, double& mu, uint64_t* prn_seeds,
int stream) const;
Particle::Type particle_; //!< Particle type

View file

@ -68,7 +68,7 @@ class ScattData {
//! @param prn_seeds Array of pseudorandom stream seeds
//! @param stream Pseudorandom stream index
virtual void
sample(int gin, int& gout, double& mu, double& wgt, uint64_t * prn_seeds,
sample(int gin, int& gout, double& mu, double& wgt, uint64_t* prn_seeds,
int stream) = 0;
//! \brief Initializes the ScattData object from a given scatter and
@ -115,7 +115,7 @@ class ScattData {
//! @param prn_seeds Array of pseudorandom stream seeds
//! @param stream Pseudorandom stream index
void
sample_energy(int gin, int& gout, int& i_gout, uint64_t * prn_seeds, int stream);
sample_energy(int gin, int& gout, int& i_gout, uint64_t* prn_seeds, int stream);
//! \brief Provides a cross section value given certain parameters
//!
@ -166,7 +166,7 @@ class ScattDataLegendre: public ScattData {
calc_f(int gin, int gout, double mu);
void
sample(int gin, int& gout, double& mu, double& wgt, uint64_t * prn_seeds, int stream);
sample(int gin, int& gout, double& mu, double& wgt, uint64_t* prn_seeds, int stream);
size_t
get_order() {return dist[0][0].size() - 1;};
@ -202,7 +202,7 @@ class ScattDataHistogram: public ScattData {
calc_f(int gin, int gout, double mu);
void
sample(int gin, int& gout, double& mu, double& wgt, uint64_t * prn_seeds, int stream);
sample(int gin, int& gout, double& mu, double& wgt, uint64_t* prn_seeds, int stream);
size_t
get_order() {return dist[0][0].size();};
@ -243,7 +243,7 @@ class ScattDataTabular: public ScattData {
calc_f(int gin, int gout, double mu);
void
sample(int gin, int& gout, double& mu, double& wgt, uint64_t * prn_seeds, int stream);
sample(int gin, int& gout, double& mu, double& wgt, uint64_t* prn_seeds, int stream);
size_t
get_order() {return dist[0][0].size();};

View file

@ -40,7 +40,7 @@ public:
//! \param[out] mu Outgoing cosine with respect to current direction
//! \param[inout] prn_seeds Array of pseudorandom seeds
//! \param[in] stream Pseudorandom stream index
void sample(double E_in, double& E_out, double& mu, uint64_t * prn_seeds,
void sample(double E_in, double& E_out, double& mu, uint64_t* prn_seeds,
int stream) const override;
// energy property

View file

@ -31,7 +31,7 @@ public:
//! \param[out] mu Outgoing cosine with respect to current direction
//! \param[inout] prn_seeds Pseudorandom stream seed array
//! \param[in] stream Pseudorandom stream index
void sample(double E_in, double& E_out, double& mu, uint64_t * prn_seeds,
void sample(double E_in, double& E_out, double& mu, uint64_t* prn_seeds,
int sample) const override;
private:
//! Outgoing energy/angle at a single incoming energy

View file

@ -26,7 +26,7 @@ public:
//! \param[out] mu Outgoing cosine with respect to current direction
//! \param[inout] prn_seeds Array of pseudorandom seeds
//! \param[in] stream Pseudorandom stream index
void sample(double E_in, double& E_out, double& mu, uint64_t * prn_seeds,
void sample(double E_in, double& E_out, double& mu, uint64_t* prn_seeds,
int stream) const override;
private:
int n_bodies_; //!< Number of particles distributed

View file

@ -33,7 +33,7 @@ public:
//! \param[out] mu Outgoing cosine with respect to current direction
//! \param[inout] prn_seeds Array of pseudorandom seeds
//! \param[in] stream Pseudorandom stream index
void sample(double E_in, double& E_out, double& mu, uint64_t * prn_seeds,
void sample(double E_in, double& E_out, double& mu, uint64_t* prn_seeds,
int stream) const override;
private:
const CoherentElasticXS& xs_; //!< Coherent elastic scattering cross section
@ -56,7 +56,7 @@ public:
//! \param[out] mu Outgoing cosine with respect to current direction
//! \param[inout] prn_seeds Array of pseudorandom seeds
//! \param[in] stream Pseudorandom stream index
void sample(double E_in, double& E_out, double& mu, uint64_t * prn_seeds,
void sample(double E_in, double& E_out, double& mu, uint64_t* prn_seeds,
int stream) const override;
private:
double debye_waller_;
@ -80,7 +80,7 @@ public:
//! \param[out] mu Outgoing cosine with respect to current direction
//! \param[inout] prn_seeds Array of pseudorandom seeds
//! \param[in] stream Pseudorandom stream index
void sample(double E_in, double& E_out, double& mu, uint64_t * prn_seeds,
void sample(double E_in, double& E_out, double& mu, uint64_t* prn_seeds,
int stream) const override;
private:
const std::vector<double>& energy_; //!< Energies at which cosines are tabulated
@ -105,7 +105,7 @@ public:
//! \param[out] mu Outgoing cosine with respect to current direction
//! \param[inout] prn_seeds Array of pseudorandom seeds
//! \param[in] stream Pseudorandom stream index
void sample(double E_in, double& E_out, double& mu, uint64_t * prn_seeds,
void sample(double E_in, double& E_out, double& mu, uint64_t* prn_seeds,
int stream) const override;
private:
const std::vector<double>& energy_; //!< Incident energies
@ -131,7 +131,7 @@ public:
//! \param[out] mu Outgoing cosine with respect to current direction
//! \param[inout] prn_seeds Array of pseudorandom seeds
//! \param[in] stream Pseudorandom stream index
void sample(double E_in, double& E_out, double& mu, uint64_t * prn_seeds,
void sample(double E_in, double& E_out, double& mu, uint64_t* prn_seeds,
int stream) const override;
private:
//! Secondary energy/angle distribution

View file

@ -31,7 +31,7 @@ public:
//! \param[out] mu Outgoing cosine with respect to current direction
//! \param[inout] prn_seeds Array of pseudorandom seeds
//! \param[in] stream Pseudorandom stream index
void sample(double E_in, double& E_out, double& mu, uint64_t * prn_seeds,
void sample(double E_in, double& E_out, double& mu, uint64_t* prn_seeds,
int stream) const override;
// Accessors

View file

@ -41,7 +41,7 @@ public:
//! \param[inout] prn_seeds Array of pseudorandom seeds
//! \param[in] stream Pseudorandom stream index
//! \return Sampled site
Particle::Bank sample(uint64_t * prn_seed, int stream) const;
Particle::Bank sample(uint64_t* prn_seed, int stream) const;
// Properties
double strength() const { return strength_; }
@ -64,7 +64,7 @@ extern "C" void initialize_source();
//! source strength
//! \param[inout] prn_seeds Array of pseudorandom seeds
//! \return Sampled source site
Particle::Bank sample_external_source(uint64_t * prn_seeds);
Particle::Bank sample_external_source(uint64_t* prn_seeds);
//! Fill source bank at end of generation for fixed source simulations
void fill_source_bank_fixedsource();

View file

@ -116,7 +116,7 @@ public:
//! \return Outgoing direction of the ray
virtual Direction reflect(Position r, Direction u) const;
virtual Direction diffuse_reflect(Position r, Direction u, uint64_t * prn_seeds,
virtual Direction diffuse_reflect(Position r, Direction u, uint64_t* prn_seeds,
int stream) const;
//! Evaluate the equation describing the surface.

View file

@ -67,7 +67,7 @@ public:
//! \param[inout] prn_seeds Pseudorandom seed array
//! \param[in] stream Pseudorandom stream index
void sample(const NuclideMicroXS& micro_xs, double E_in,
double* E_out, double* mu, uint64_t * prn_seeds, int stream);
double* E_out, double* mu, uint64_t* prn_seeds, int stream);
private:
struct Reaction {
// Default constructor
@ -105,7 +105,7 @@ public:
//! \param[inout] prn_seeds Array of pseudorandom seeds
//! \param[in] stream Pseudorandom stream index
void calculate_xs(double E, double sqrtkT, int* i_temp, double* elastic,
double* inelastic, uint64_t * prn_seeds, int stream) const;
double* inelastic, uint64_t* prn_seeds, int stream) const;
//! Determine whether table applies to a particular nuclide
//!