Skip to content

Commit

Permalink
fix ibas_prf=3 initialization when zf(k) is exactly 11000 (1st value …
Browse files Browse the repository at this point in the history
…in the lapse rate table) - fixes #41
  • Loading branch information
fjansson committed Jun 13, 2019
1 parent c343772 commit ee6230b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modstartup.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ subroutine baseprofs
tb(k)=tsurf+lapserate(1)*(zf(k)-zsurf)
else
j=1
do while(zf(k)>zmat(j))
do while(zf(k)>=zmat(j))
j=j+1
end do
tb(k)=tmat(j-1)+lapserate(j)*(zf(k)-zmat(j-1))
Expand Down

0 comments on commit ee6230b

Please sign in to comment.