Commit eddb04e6 authored by James Sutherland's avatar James Sutherland
Browse files

Silence some compiler warnings on some access functions

parent d94f2059
Pipeline #1126 failed with stage
in 13 minutes and 35 seconds
......@@ -23,23 +23,23 @@ public:
/**
* @brief returns \f$\a_{H2O,gasif}\f$ - pre-exponential factor for char gasification with H2O
*/
inline const double get_a_h2o_gasif() const{ return aH2OGasif_; }
inline double get_a_h2o_gasif() const{ return aH2OGasif_; }
/**
* @brief returns \f$\a_{CO2,gasif}\f$ - pre-exponential factor for char gasification with CO2
*/
inline const double get_a_co2_gasif() const{ return aCO2Gasif_; }
inline double get_a_co2_gasif() const{ return aCO2Gasif_; }
/**
* @brief returns \f$\a_{H2O,gasif}\f$ - activation energy for char gasification with H2O and CO2
*/
inline const double get_ea_gasif() const{ return eaGasif_; }
inline double get_ea_gasif() const{ return eaGasif_; }
/**
* @brief returns \f$\nu_{H2O,gasif}\f$ - consumed mole of H2O per char mass from char gasification with H2O (mol H2O/g C)
*/
inline const double get_stoicoeff_h2o_gasif() const{ return stoicoeffH2OGasif_; }
inline double get_stoicoeff_h2o_gasif() const{ return stoicoeffH2OGasif_; }
/**
* @brief returns \f$\nu_{CO2,gasif}\f$ - consumed mole of CO2 per char mass from char gasification with CO2 (mol CO2/g C)
*/
inline const double get_stoicoeff_co2_gasif() const{ return stoicoeffCO2Gasif_; }
inline double get_stoicoeff_co2_gasif() const{ return stoicoeffCO2Gasif_; }
protected:
double aH2OGasif_, aCO2Gasif_, eaGasif_, stoicoeffH2OGasif_, stoicoeffCO2Gasif_;
......
......@@ -72,14 +72,14 @@ namespace Coal{
public:
CoalComposition( const Coal::CoalType sel,
const YAML::Node& particleParser);
const double get_C() const{ return C_; }
const double get_H() const{ return H_; }
const double get_N() const{ return N_; }
const double get_O() const{ return O_; }
const double get_moisture() const{ return moisture_; } ///< moisture fraction of parent coal
const double get_ash() const{ return ash_; } ///< ash fraction of the parent coal
const double get_vm() const{ return vm_; } ///< volatile matter fraction of the parent coal
const double get_fixed_c() const{ return fixedc_; } ///< fixed carbon fraction of the parent coal
inline double get_C() const{ return C_; }
inline double get_H() const{ return H_; }
inline double get_N() const{ return N_; }
inline double get_O() const{ return O_; }
inline double get_moisture() const{ return moisture_; } ///< moisture fraction of parent coal
inline double get_ash() const{ return ash_; } ///< ash fraction of the parent coal
inline double get_vm() const{ return vm_; } ///< volatile matter fraction of the parent coal
inline double get_fixed_c() const{ return fixedc_; } ///< fixed carbon fraction of the parent coal
bool test_data();
double get_c0() const;
protected:
......
......@@ -46,33 +46,33 @@ enum CPDSpecies {
CPDInformation( const Coal::CoalType coalType,
const YAML::Node& particleParser);
int get_nspec() const{ return nspec_; } ///< Return number of gas-phase species for the CPD model
inline int get_nspec() const{ return nspec_; } ///< Return number of gas-phase species for the CPD model
const Coal::CoalComposition& get_coal_composition() const{ return coalComp_; } ///< Return the CoalComposition
inline const Coal::CoalComposition& get_coal_composition() const{ return coalComp_; } ///< Return the CoalComposition
const std::vector<double>& get_fgi() const{ return fg_; } ///< Functional Group vector (mass basis)
inline const std::vector<double>& get_fgi() const{ return fg_; } ///< Functional Group vector (mass basis)
const std::vector<double>& get_mwVec() const{ return mwVec_;}; ///< Vector of molecular weight of species involved in CPD model
inline const std::vector<double>& get_mwVec() const{ return mwVec_;}; ///< Vector of molecular weight of species involved in CPD model
double get_sumfg() const{ return sumfg_; }; ///< Sum of Functional Groups (mass basis)
inline double get_sumfg() const{ return sumfg_; }; ///< Sum of Functional Groups (mass basis)
double get_l0_mass() const { return l0_; }; ///< Initial mass fraction of labile bridge
inline double get_l0_mass() const { return l0_; }; ///< Initial mass fraction of labile bridge
double get_l0_mole() const; ///< Initial mole fraction of labile bridge in coal
const double get_tarMassFrac() const{ return tarMassFrac0_; } ///< Initial mass fraction of tar in functional group
inline double get_tarMassFrac() const{ return tarMassFrac0_; } ///< Initial mass fraction of tar in functional group
double get_coordNo() const { return coordNo_; }; ///< Coordination number of coal lattice
inline double get_coordNo() const { return coordNo_; }; ///< Coordination number of coal lattice
double get_lbPop0() const { return lbPop0_; }; ///< Initial normalized bridge population
inline double get_lbPop0() const { return lbPop0_; }; ///< Initial normalized bridge population
const std::vector<double>& get_A0() const { return A0_; }; ///< Pre-exponential factor of devolatilization reaction
inline const std::vector<double>& get_A0() const { return A0_; }; ///< Pre-exponential factor of devolatilization reaction
const std::vector<double>& get_E0() const { return E0_; }; ///< Activation energy of reaction of devolatilization
inline const std::vector<double>& get_E0() const { return E0_; }; ///< Activation energy of reaction of devolatilization
const std::vector<double>& get_sigma() const {return sigma_;} ///< Deviation of activation energy
inline const std::vector<double>& get_sigma() const {return sigma_;} ///< Deviation of activation energy
double l0_molecular_weight() const{ return Ml0_; } ///< Molecular weight of labile bridge
inline double l0_molecular_weight() const{ return Ml0_; } ///< Molecular weight of labile bridge
protected:
const int nspec_; ///< the number of gas phase species
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment