source: trunk/LMDZ.TITAN.old/libf/phytitan/gr_fi_ecrit.F90 @ 3303

Last change on this file since 3303 was 1549, checked in by emillour, 9 years ago

All GCMs:
Further adaptations to keep up with changes in LMDZ5 concerning
physics/dynamics separation (up to rev r2420 of LMDZ5)

  • all physics packages:
  • added module callphysiq_mod.F90 in dynphy_lonlat/phy* which contains the routine "call_physiq" which is called by calfis* and calls the physics. This way different "physiq" routine from different physics packages may be called: The calfis* routines now exposes all available fields that might be transmitted to physiq but which is actually send (ie: expected/needed by physiq) is decided in call_physiq.
  • turned "physiq.F[90]" into module "physiq_mod.F[90]" for better control of "physiq" arguments. for phyvenus/phytitan, extracted gr_fi_ecrit from physiq.F as gr_fi_ecrit.F90 (note that it can only work in serial).
  • misc:
  • updated wxios.F90 to keep up with LMDZ5 modifications.
  • dyn3d_common:
  • infotrac.F90 keep up with LMDZ5 modifications (cosmetics)
  • dyn3d:
  • gcm.F90: cosmetic cleanup.
  • leapfrog.F90: fix computation of date as function of itau.
  • dyn3dpar:
  • gcm.F: cosmetic cleanup.
  • leapfrog_p.F90: fix computation of date as function of itau.

NB: physics are given the date corresponding to the end of the
physics step.

  • dynphy_lonlat:
  • calfis.F : added computation of relative wind vorticity.
  • calfis_p.F: added computation of relative wind vorticity (input required by Earth physics)

EM

File size: 603 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.