1 |
module filtreg_hemisph_m |
2 |
|
3 |
implicit none |
4 |
|
5 |
contains |
6 |
|
7 |
subroutine filtreg_hemisph(champ, sdd, matri) |
8 |
|
9 |
USE dimens_m, ONLY: iim |
10 |
|
11 |
REAL, intent(inout):: champ(:, :, :) ! (iim + 1, :, :) |
12 |
REAL, intent(in):: sdd(:) ! (iim) |
13 |
real, intent(in), dimension(:, :, :):: matri ! (iim, iim, :) |
14 |
|
15 |
! Local: |
16 |
integer l, j |
17 |
|
18 |
!----------------------------------------------------------------- |
19 |
|
20 |
forall (j = 1:size(champ, 2), l = 1:size(champ, 3)) |
21 |
champ(:iim, j, l) = champ(:iim, j, l) & |
22 |
+ matmul(matri(:, :, j), champ(:iim, j, l) * sdd) / sdd |
23 |
END forall |
24 |
|
25 |
champ(iim + 1, :, :) = champ(1, :, :) |
26 |
|
27 |
end subroutine filtreg_hemisph |
28 |
|
29 |
end module filtreg_hemisph_m |