Try using goto(s)

This commit is contained in:
Charlton, Scott R 2023-10-31 14:15:28 -06:00
parent 9b10ce3f5c
commit 988bdee0a6

View File

@ -5415,8 +5415,13 @@ k_temp(LDBLE tc, LDBLE pa) /* pa - pressure in atm */
// if (tc == current_tc && pa == current_pa && ((fabs(mu_x - current_mu) < 1e-3 * mu_x) || !mu_terms_in_logk))
// return OK;
if (tc != current_tc || pa != current_pa || !((fabs(mu_x - current_mu) < 1e-3 * mu_x) || !mu_terms_in_logk))
return OK;
if (tc != current_tc) goto proceed;
if (pa != current_pa) goto proceed;
if (fabs(mu_x - current_mu) > 1e-3 * mu_x) goto proceed;
if (mu_terms_in_logk) goto proceed;
return OK;
proceed:
int i;
LDBLE tempk = tc + 273.15;