Skip to content

Commit

Permalink
Ustar boundary exchange minor rewrite
Browse files Browse the repository at this point in the history
ustar_3D(1:i2,1:j2,1:1) => ustar
instead of
ustar_3D(1:size(ustar,1),1:size(ustar,2),1:1) => ustar
result is the same, just be more explicit about the bounds of ustar,
which always have one ghost cell to each side.
After discussion with Huug Ouwersloot.
  • Loading branch information
fjansson committed Jun 7, 2023
1 parent 3358143 commit 45e38ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modsurface.f90
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ end subroutine initsurface

!> Calculates the interaction with the soil, the surface temperature and humidity, and finally the surface fluxes.
subroutine surface
use modglobal, only : i1,j1,fkar,zf,cu,cv,nsv,ijtot,rd,rv,rtimee
use modglobal, only : i1,j1,i2,j2,fkar,zf,cu,cv,nsv,ijtot,rd,rv,rtimee
use modfields, only : thl0, qt0, u0, v0, u0av, v0av
use modmpi, only : mpierr, comm3d, mpi_sum, excjs &
, D_MPI_ALLREDUCE, D_MPI_BCAST
Expand Down Expand Up @@ -1042,7 +1042,7 @@ subroutine surface
end if

! Transfer ustar to neighbouring cells, do this like a 3D field
ustar_3D(1:size(ustar,1),1:size(ustar,2),1:1) => ustar
ustar_3D(1:i2,1:j2,1:1) => ustar
call excjs(ustar_3D,2,i1,2,j1,1,1,1,1)
end subroutine surface

Expand Down

0 comments on commit 45e38ac

Please sign in to comment.