Skip to content
Snippets Groups Projects
Commit 949b6a96 authored by Ian Bell's avatar Ian Bell
Browse files

Fixed the reference issue, maybe?

parent 6fbd6e99
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,8 @@ const double N_A = 6.02214076e23; ///< Avogadro's number
///< Gas constant, according to CODATA 2019, in the given number type
template<typename NumType>
const NumType get_R_gas() {
const auto get_R_gas() {
const double k_B = 1.380649e-23; ///< Boltzmann constant
const double N_A = 6.02214076e23; ///< Avogadro's number
return N_A*k_B;
return forceeval(static_cast<NumType>(N_A*k_B));
};
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment