source: LMDZ6/trunk/libf/dynphy_lonlat/gr_dyn_fi.F @ 4458

Last change on this file since 4458 was 4456, checked in by lguez, 21 months ago

Stop with return code 1

So that a calling script may know that the program failed.

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1!
2! $Header$
3!
4      SUBROUTINE gr_dyn_fi(nfield,im,jm,ngrid,pdyn,pfi)
5      IMPLICIT NONE
6c=======================================================================
7c   passage d'un champ de la grille scalaire a la grille physique
8c=======================================================================
9
10c-----------------------------------------------------------------------
11c   declarations:
12c   -------------
13
14      INTEGER im,jm,ngrid,nfield
15      REAL pdyn(im,jm,nfield)
16      REAL pfi(ngrid,nfield)
17
18      INTEGER j,ifield,ig
19
20c-----------------------------------------------------------------------
21c   calcul:
22c   -------
23
24      IF (ngrid.NE.2+(jm-2)*(im-1)) then
25         print *, 'probleme de dim'
26         stop 1
27      end if
28c   traitement des poles
29      CALL SCOPY(nfield,pdyn,im*jm,pfi,ngrid)
30      CALL SCOPY(nfield,pdyn(1,jm,1),im*jm,pfi(ngrid,1),ngrid)
31
32c   traitement des point normaux
33      DO ifield=1,nfield
34         DO j=2,jm-1
35            ig=2+(j-2)*(im-1)
36            CALL SCOPY(im-1,pdyn(1,j,ifield),1,pfi(ig,ifield),1)
37         ENDDO
38      ENDDO
39
40      RETURN
41      END
Note: See TracBrowser for help on using the repository browser.