Skip to content

Commit

Permalink
Merge pull request #23 from thermotools/hotfix/failed_diffusion_test
Browse files Browse the repository at this point in the history
Fixed Inappropriate runtime error
  • Loading branch information
vegardjervell authored Feb 15, 2024
2 parents 7a32133 + 4b4ed06 commit 6eb8338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/MieKinGas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ double MieKinGas::omega_recursive_factor(int i, int j, int l, int r, double T_st
// Given in Fokin, Popov and Kalashnikov, High Temperature, Vol. 37, No. 1 (1999)
// See also: Hirchfelder, Curtiss & Bird, Molecular Theory of Gases and Liquids.
// For reduced integrals : omega(l, r + 1) / omega(l, r) = 1 + (d omega(l, r) / d lnT^*) / (r + 2)
if ((l > 1) || (r > 2)) throw std::runtime_error("No recursive factor available!");
if ((l > 2) || (r > 3)) {throw std::runtime_error("No recursive factor available!");}
double dlnomega_dlnT = - (2 / lr[i][j]);
double a_m;
for (int n = 2; n < 7; n++){
Expand Down

0 comments on commit 6eb8338

Please sign in to comment.