/[lmdze]/trunk/Sources/filtrez/filtreg_hemisph.f
ViewVC logotype

Annotation of /trunk/Sources/filtrez/filtreg_hemisph.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 142 - (hide annotations)
Fri Jun 5 19:31:37 2015 UTC (8 years, 11 months ago) by guez
File size: 690 byte(s)
This revision changes results.

1 guez 136 module filtreg_hemisph_m
2    
3     implicit none
4    
5     contains
6    
7 guez 141 subroutine filtreg_hemisph(champ, sdd, matri)
8 guez 136
9     USE dimens_m, ONLY: iim
10    
11     REAL, intent(inout):: champ(:, :, :) ! (iim + 1, :, :)
12 guez 141 REAL, intent(in):: sdd(:) ! (iim)
13 guez 136 real, intent(in), dimension(:, :, :):: matri ! (iim, iim, :)
14    
15     ! Local:
16     integer l, j
17    
18     !-----------------------------------------------------------------
19    
20 guez 142 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 guez 136
25 guez 142 champ(iim + 1, :, :) = champ(1, :, :)
26    
27 guez 136 end subroutine filtreg_hemisph
28    
29     end module filtreg_hemisph_m

  ViewVC Help
Powered by ViewVC 1.1.21