Skip to content

Commit

Permalink
override if elevation input not present
Browse files Browse the repository at this point in the history
  • Loading branch information
jedokaplan committed Mar 7, 2022
1 parent 54ef022 commit ff3d4ff
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions biome4driver.f90
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,16 @@ program biome4main
! elevation

status = nf90_inq_varid(ncid,'elv',varid)
if (status /= nf90_noerr) call handle_err(status)
if (status == nf90_noerr) then

status = nf90_get_var(ncid,varid,elv,start=[srtx,srty],count=[cntx,cnty])
if (status /= nf90_noerr) call handle_err(status)
status = nf90_get_var(ncid,varid,elv,start=[srtx,srty],count=[cntx,cnty])
if (status /= nf90_noerr) call handle_err(status)

else

elv = 0.

end if

!-------------------------------------------------------
! temperature
Expand Down

0 comments on commit ff3d4ff

Please sign in to comment.