mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
Try using goto(s)
This commit is contained in:
parent
9b10ce3f5c
commit
988bdee0a6
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user