source: trunk/LMDZ.PLUTO.old/libf/dyn3d/gr_fi_dyn.F

Last change on this file was 3175, checked in by emillour, 11 months ago

Pluto PCM:
Add the old Pluto LMDZ for reference (required prior step to making
an LMDZ.PLUTO using the same framework as the other physics packages).
TB+EM

File size: 1.0 KB
Line 
1      SUBROUTINE gr_fi_dyn(nfield,ngrid,im,jm,pfi,pdyn)
2      IMPLICIT NONE
3c=======================================================================
4c   passage d'un champ de la grille scalaire a la grille physique
5c=======================================================================
6
7c-----------------------------------------------------------------------
8c   declarations:
9c   -------------
10
11      INTEGER im,jm,ngrid,nfield
12      REAL pdyn(im,jm,nfield)
13      REAL pfi(ngrid,nfield)
14
15      INTEGER i,j,ifield,ig
16      EXTERNAL SCOPY
17
18c-----------------------------------------------------------------------
19c   calcul:
20c   -------
21      DO ifield=1,nfield
22c   traitement des poles
23         DO i=1,im
24            pdyn(i,1,ifield)=pfi(1,ifield)
25            pdyn(i,jm,ifield)=pfi(ngrid,ifield)
26         ENDDO
27
28c   traitement des point normaux
29         DO j=2,jm-1
30            ig=2+(j-2)*(im-1)
31            CALL SCOPY(im-1,pfi(ig,ifield),1,pdyn(1,j,ifield),1)
32            pdyn(im,j,ifield)=pdyn(1,j,ifield)
33         ENDDO
34      ENDDO
35
36      RETURN
37      END
Note: See TracBrowser for help on using the repository browser.