Skip to content

Commit

Permalink
modsurface: initialize ustar, otherwise uninitialized corner values a…
Browse files Browse the repository at this point in the history
…re handled in the first exchange
  • Loading branch information
fjansson committed Sep 4, 2024
1 parent 9640d69 commit 6ce6c13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modsurface.f90
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,7 @@ subroutine initsurface
endif

dqtdz = 0 ! need to initialize, otherwise undefined in the first call to thermodynamics, before call surface (cold start)
ustar = 0 ! need to initialize, otherwise undefined values in the corners in the first exchange

!$acc enter data copyin(z0m, z0h, obl, tskin, qskin, Cm, Cs, &
!$acc& ustar, dudz, dvdz, thlflux, qtflux, &
Expand Down

0 comments on commit 6ce6c13

Please sign in to comment.