source: LMDZ6/branches/Amaury_dev/libf/phylmd/gr_fi_ecrit.F90 @ 5099

Last change on this file since 5099 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

File size: 591 bytes
Line 
1SUBROUTINE gr_fi_ecrit(nfield,nlon,iim,jjmp1,fi,ecrit)
2  IMPLICIT none
3
4  ! Tranformer une variable de la grille physique a
5  ! la grille d'ecriture
6
7  ! WARNING: This only works on the full global grid
8  !          (ie for GCM in serial mode)
9  INTEGER nfield,nlon,iim,jjmp1, jjm
10  REAL fi(nlon,nfield), ecrit(iim*jjmp1,nfield)
11
12  INTEGER i, n, ig
13
14  jjm = jjmp1 - 1
15  DO n = 1, nfield
16     DO i=1,iim
17        ecrit(i,n) = fi(1,n)
18        ecrit(i+jjm*iim,n) = fi(nlon,n)
19     ENDDO
20     DO ig = 1, nlon - 2
21        ecrit(iim+ig,n) = fi(1+ig,n)
22     ENDDO
23  ENDDO
24END SUBROUTINE gr_fi_ecrit
Note: See TracBrowser for help on using the repository browser.