source: LMDZ6/branches/Amaury_dev/libf/phydev/gr_fi_ecrit.F90 @ 5115

Last change on this file since 5115 was 5099, checked in by abarral, 4 months ago

Replace most uses of CPP_DUST by the corresponding logical defined in lmdz_cppkeys_wrapper.F90
Convert several files from .F to .f90 to allow Dust to compile w/o rrtm/ecrad
Create lmdz_yoerad.f90
(lint) Remove "!" on otherwise empty line

  • 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
File size: 584 bytes
Line 
1
2! $Id $
3
4SUBROUTINE gr_fi_ecrit(nfield,nlon,iim,jjmp1,fi,ecrit)
5  IMPLICIT NONE
6
7  ! Transfer a field from the full physics grid
8  ! to a full 2D (lonxlat) grid suitable for outputs
9
10  INTEGER,INTENT(IN) :: nfield,nlon,iim,jjmp1
11  REAL,INTENT(IN) :: fi(nlon,nfield)
12  REAL,INTENT(out) :: ecrit(iim*jjmp1,nfield)
13
14  INTEGER :: i, n, ig, jjm
15
16  jjm = jjmp1 - 1
17  DO n = 1, nfield
18     DO i=1,iim
19        ecrit(i,n) = fi(1,n)
20        ecrit(i+jjm*iim,n) = fi(nlon,n)
21     ENDDO
22     DO ig = 1, nlon - 2
23        ecrit(iim+ig,n) = fi(1+ig,n)
24     ENDDO
25  ENDDO
26
27END SUBROUTINE gr_fi_ecrit
Note: See TracBrowser for help on using the repository browser.