Skip to content

Commit

Permalink
Fix what seems to be an upstream bug caused by a misplaced parenthesis.
Browse files Browse the repository at this point in the history
  • Loading branch information
tskisner committed Nov 1, 2019
1 parent 9a3f4e1 commit 7aa399a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/libaatm/src/ATMProfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1694,9 +1694,10 @@ size_t AtmProfile::mkAtmProfile()
minmin = 20000.0;

for(k = 0; k < 20; k++) {

if( (fabs(v_layerPressure[i - 1] - dp * pow(dp1, (int)(i - 1)) > 1.05*px[typeAtm_ - 1][k])) &&
(fabs(v_layerPressure[i - 1] - dp * pow(dp1, (int)(i - 1)) - px[typeAtm_ - 1][k])) <= minmin ) {
if(
(fabs(v_layerPressure[i - 1] - dp * pow(dp1, (int)(i - 1) ) ) > 1.05*px[typeAtm_ - 1][k] ) &&

This comment has been minimized.

Copy link
@keskitalo

keskitalo Nov 1, 2019

Member

Nice catch!

(fabs(v_layerPressure[i - 1] - dp * pow(dp1, (int)(i - 1) ) - px[typeAtm_ - 1][k]) <= minmin)
) {

j = k;

Expand Down

0 comments on commit 7aa399a

Please sign in to comment.