source: trunk/libf/dyn3dpar/ce0l.F90 @ 66

Last change on this file since 66 was 66, checked in by emillour, 14 years ago

EM: Mise a niveau par rapport a la version terrestre (LMDZ5V2.0-dev, rev 1487)

  • Mise a jour des scripts (terrestres) 'makegcm' et 'create_make_gcm'
  • Ajout du script 'makelmdz' (version "amelioree", en Bash, de makegcm)
  • Mise a jour des routines dans phylmd (sauf regr_lat_time_climoz_m.F)
  • disvert (dans dyn3d et dyn3dpar): passage au Fortran 90
  • parallel.F90 (dyn3dpar): correction bug
  • etat0_netcdf.F90 (dyn3d et dyn3dpar) : mise a jour mineure
  • ce0l.F90 (dyn3dpar) : correction bug
  • abort_gcm.F (dyn3dpar) : correction bug
  • ugeostr.F90 (dyn3d et dyn3dpar) : passage au Fortran 90
  • fluxstokenc_p.F (dyn3dpar) : correction bug
  • iniacademic.F90 (dyn3d et dyn3dpar) : passage au Fortran 90
  • friction_p.F (dyn3dpar) : correction bug
  • infotrac.F90 (dyn3d et dyn3dpar) : correction bug mineur sur lecture traceurs
  • caladvtrac.F (dyn3d) : modifications cosmetiques
File size: 3.8 KB
RevLine 
[1]1!
[66]2! $Id: ce0l.F90 1482 2011-02-09 15:03:09Z jghattas $
[1]3!
4!-------------------------------------------------------------------------------
5!
6PROGRAM ce0l
7!-------------------------------------------------------------------------------
8! Purpose: Calls etat0, creates initial states and limit_netcdf
9!
10!     interbar=.T. for barycentric interpolation inter_barxy
11!     extrap  =.T. for data extrapolation, like for the SSTs when file does not
12!                  contain ocean points only.
13!     oldice  =.T. for old-style ice, obtained using grille_m (grid_atob).
14!     masque is created in etat0, passed to limit to ensure consistancy.
15!-------------------------------------------------------------------------------
16  USE control_mod
17#ifdef CPP_EARTH
18! This prog. is designed to work for Earth
19  USE dimphy
20  USE comgeomphy
21  USE mod_phys_lmdz_para
22  USE mod_const_mpi
23  USE infotrac
[66]24  USE parallel, ONLY: finalize_parallel
[1]25
26#ifdef CPP_IOIPSL
27  USE ioipsl, ONLY: ioconf_calendar
28#endif
29
30#endif
31  IMPLICIT NONE
32#ifndef CPP_EARTH
33  WRITE(lunout,*)'limit_netcdf: Earth-specific routine, needs Earth physics'
34#else
35!-------------------------------------------------------------------------------
36! Local variables:
37  LOGICAL, PARAMETER :: interbar=.TRUE., extrap=.FALSE., oldice=.FALSE.
38#include "dimensions.h"
39#include "paramet.h"
40#include "indicesol.h"
41#include "iniprint.h"
42#include "temps.h"
43#include "logic.h"
44  INTEGER, PARAMETER            :: longcles=20
45  REAL,    DIMENSION(longcles)  :: clesphy0
46  REAL,    DIMENSION(iip1,jjp1) :: masque
47  CHARACTER(LEN=15)             :: calnd
48!-------------------------------------------------------------------------------
49  CALL conf_gcm( 99, .TRUE. , clesphy0 )
50
51  CALL init_mpi
52
53  CALL Init_Phys_lmdz(iim,jjp1,llm,1,(/(jjm-1)*iim+2/))
54  WRITE(lunout,*)'---> klon=',klon
55  IF (mpi_size>1 .OR. omp_size>1) THEN
56       CALL abort_gcm('ce0l','In parallel mode,                         &
57 &                 ce0l must be called only                             &
[66]58 &                 for 1 process and 1 task',1)
[1]59  ENDIF
60
61  CALL InitComgeomphy
62
63#ifdef CPP_IOIPSL
64  SELECT CASE(calend)
65    CASE('earth_360d');CALL ioconf_calendar('360d');      calnd='a 360 jours/an'
66    CASE('earth_365d');CALL ioconf_calendar('noleap');    calnd='a 365 jours/an'
67    CASE('earth_366d');CALL ioconf_calendar('366d');      calnd='bissextile'
68    CASE('gregorian'); CALL ioconf_calendar('gregorian'); calnd='gregorien'
69    CASE('standard');  CALL ioconf_calendar('gregorian'); calnd='gregorien'
70    CASE('julian');    CALL ioconf_calendar('julian');    calnd='julien'
71    CASE('proleptic_gregorian'); CALL ioconf_calendar('gregorian')
72  !--- DC Bof...  => IOIPSL a mettre a jour: proleptic_gregorian /= gregorian
73    CASE DEFAULT
74      CALL abort_gcm('ce0l','Mauvais choix de calendrier',1)
75  END SELECT
76  WRITE(lunout,*)'CALENDRIER CHOISI: Terrestre '//TRIM(calnd)
77#endif
78
79  IF (config_inca /= 'none') THEN
80#ifdef INCA
81    CALL init_const_lmdz(nbtr,anneeref,dayref,iphysiq,day_step,nday)
82    CALL init_inca_para(iim,jjm+1,klon,1,klon_mpi_para_nb,0)
83    WRITE(lunout,*)'nbtr =' , nbtr
84#endif
85  END IF
86
87  WRITE(lunout,'(//)')
88  WRITE(lunout,*) '  *********************  '
89  WRITE(lunout,*) '  ***  etat0_netcdf ***  '
90  WRITE(lunout,*) '  *********************  '
91  WRITE(lunout,'(//)')
92  WRITE(lunout,*) ' interbar = ',interbar
93  CALL etat0_netcdf(interbar,masque,ok_etat0)
94
95  IF(ok_limit) THEN
96  WRITE(lunout,'(//)')
97  WRITE(lunout,*) '  *********************  '
98  WRITE(lunout,*) '  ***  Limit_netcdf ***  '
99  WRITE(lunout,*) '  *********************  '
100  WRITE(lunout,'(//)')
101  CALL limit_netcdf(interbar,extrap,oldice,masque)
102  END IF
103
[66]104!$OMP MASTER
105  CALL finalize_parallel
106!$OMP END MASTER
107
[1]108#endif
109! of #ifndef CPP_EARTH #else
110
111END PROGRAM ce0l
112!
113!-------------------------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.