Reservoir-based ghost fill, west edge. hTr_ghost = tres_w(j, k, it) * h_ghost — unconditional.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(inout) | :: | hTr(nx_total,ny_total,nz) | |||
| real(kind=wp), | intent(in) | :: | h_layer(nx_total,ny_total,nz) | |||
| real(kind=wp), | intent(in) | :: | tres_w(ny_total,nz,n_tr) | |||
| integer, | intent(in) | :: | nx_total | |||
| integer, | intent(in) | :: | ny_total | |||
| integer, | intent(in) | :: | nz | |||
| integer, | intent(in) | :: | i_w | |||
| integer, | intent(in) | :: | j0 | |||
| integer, | intent(in) | :: | j1 | |||
| integer, | intent(in) | :: | nghost | |||
| integer, | intent(in) | :: | it | |||
| integer, | intent(in) | :: | n_tr |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | private | :: | g | ||||
| real(kind=wp), | private | :: | hTr_bc | ||||
| integer, | private | :: | j | ||||
| integer, | private | :: | k |
pure subroutine fill_ghost_west_res(hTr, h_layer, tres_w, & nx_total, ny_total, nz, & i_w, j0, j1, nghost, it, n_tr) !! Reservoir-based ghost fill, west edge. !! hTr_ghost = tres_w(j, k, it) * h_ghost — unconditional. integer, intent(in) :: nx_total, ny_total, nz, nghost, it, n_tr real(wp), intent(inout) :: hTr(nx_total, ny_total, nz) real(wp), intent(in) :: h_layer(nx_total, ny_total, nz) real(wp), intent(in) :: tres_w(ny_total, nz, n_tr) integer, intent(in) :: i_w, j0, j1 integer :: j, k, g real(wp) :: hTr_bc do concurrent(k=1:nz, j=j0:j1, g=1:nghost) local(hTr_bc) hTr_bc = tres_w(j, k, it)*h_layer(g, j, k) hTr(g, j, k) = hTr_bc end do end subroutine fill_ghost_west_res