/[lmdze]/trunk/phylmd/Interface_surf/gath2cpl.f
ViewVC logotype

Annotation of /trunk/phylmd/Interface_surf/gath2cpl.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 100 - (hide annotations)
Wed Jul 2 19:07:58 2014 UTC (9 years, 11 months ago) by guez
File size: 1204 byte(s)
Removed unused variable tmp_rlic of module interface_surf.

Removed useless call to gath2cpl in procedure interfsurf_hq. Removed
then uncalled procedure gath2cpl.

1 guez 99 module gath2cpl_m
2 guez 3
3 guez 99 ! From phylmd/interface_surf.F90, version 1.8, 2005/05/25 13:10:09
4 guez 3
5     implicit none
6    
7     contains
8    
9     SUBROUTINE gath2cpl(champ_in, champ_out, klon, knon, iim, jjm, knindex)
10    
11     ! Cette routine ecrit un champ 'gathered' sur la grille 2D pour le passer
12     ! au coupleur.
13    
14 guez 100 integer, intent(in):: klon, knon, iim, jjm
15     ! klon taille de la grille
16     ! knon nombre de points dans le domaine a traiter
17     ! iim, jjm dimension de la grille 2D
18    
19     real, intent(in):: champ_in(klon) ! champ sur la grille gathere
20    
21     integer, intent(in):: knindex(klon)
22     ! index des points de la surface a traiter
23    
24     real, intent(out):: champ_out(iim, jjm + 1) ! champ sur la grille 2D
25    
26     ! Local:
27     integer :: i, ig, j
28     real, dimension(klon) :: tamp
29    
30 guez 99 !--------------------------------------------------------------------
31    
32 guez 3 tamp = 0.
33     do i = 1, knon
34     ig = knindex(i)
35     tamp(ig) = champ_in(i)
36     enddo
37     ig = 1
38 guez 100 champ_out(:, 1) = tamp(ig)
39 guez 3 do j = 2, jjm
40     do i = 1, iim
41     ig = ig + 1
42 guez 100 champ_out(i, j) = tamp(ig)
43 guez 3 enddo
44     enddo
45     ig = ig + 1
46 guez 100 champ_out(:, jjm + 1) = tamp(ig)
47 guez 3
48     END SUBROUTINE gath2cpl
49    
50 guez 99 end module gath2cpl_m

  ViewVC Help
Powered by ViewVC 1.1.21