Skip to content

Commit

Permalink
Fix initialization of i_shallower
Browse files Browse the repository at this point in the history
  • Loading branch information
mauzey1 committed Nov 8, 2024
1 parent 335fd5b commit fba2879
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gsw_oceanographic_toolbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -8908,9 +8908,9 @@ gsw_sa_ct_interp(double *sa, double *ct, double *p, int m,
break;
}

for (i=0; i < i_2_len; ++i) {
if ((i_3[i] - i_frozen) <= 0) {
i_shallower = i;
for (i_shallower=i_2_len-1; i_shallower>=0; --i_shallower) {
if ((i_3[i_shallower] - i_frozen) <= 0) {
break;
}
}
i_above = i_2[i_shallower];
Expand Down

0 comments on commit fba2879

Please sign in to comment.