source: LMDZ4/trunk/libf/dyn3dpar/gr_fi_dyn_p.F @ 630

Last change on this file since 630 was 630, checked in by Laurent Fairhead, 19 years ago

Import d'une version parallele de la dynamique YM
LF

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1      SUBROUTINE gr_fi_dyn_p(nfield,ngrid,im,jm,pfi,pdyn)
2      use dimphy
3      use parallel
4      IMPLICIT NONE
5c=======================================================================
6c   passage d'un champ de la grille scalaire a la grille physique
7c=======================================================================
8
9c-----------------------------------------------------------------------
10c   declarations:
11c   -------------
12
13      INTEGER im,jm,ngrid,nfield
14      REAL pdyn(im,jm,nfield)
15      REAL pfi(ngrid,nfield)
16
17      INTEGER i,j,ifield,ig
18
19c-----------------------------------------------------------------------
20c   calcul:
21c   -------
22
23      DO ifield=1,nfield
24
25        do ig=1,klon
26          i=Liste_i(ig)
27          j=Liste_j(ig)
28          pdyn(i,j,ifield)=pfi(ig,ifield)
29          if (i==1) pdyn(im,j,ifield)=pdyn(i,j,ifield)
30        enddo
31
32c   traitement des poles
33      if (pole_nord) then
34        do i=1,im
35          pdyn(i,1,ifield)=pdyn(1,1,ifield)
36        enddo
37      endif
38       
39      if (pole_sud) then
40        do i=1,im
41          pdyn(i,jm,ifield)=pdyn(1,jm,ifield)
42        enddo
43      endif
44     
45      ENDDO
46
47      RETURN
48      END
Note: See TracBrowser for help on using the repository browser.