source: LMDZ4/trunk/libf/dyn3dpar/ce0l.F @ 1314

Last change on this file since 1314 was 1314, checked in by Laurent Fairhead, 14 years ago

File create_etat0_limit.F is renamed so that it can compile in parallel on NECs


Le fichier create_etat0_limit.F est renommé pour pouvoir être compilé en
parallèle sur les Necs

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1!
2! $Id: ce0l.F 1314 2010-02-22 10:11:14Z fairhead $
3!
4       PROGRAM create_etat0_limit
5#ifdef CPP_EARTH
6! This prog. is designed to work for Earth
7       USE dimphy
8       USE comgeomphy
9       USE mod_phys_lmdz_para
10       USE mod_const_mpi
11       USE infotrac
12#ifdef CPP_IOIPSL
13       use ioipsl, only: ioconf_calendar
14#endif
15       IMPLICIT NONE
16c
17c
18c     Programme d'appel a etat0, creation des etats initiaux et limit_netcdf
19c   
20c
21c     interbar = .T . si appel a  interpol. barycentrique inter_barxy
22c
23c     extrap   = .T . si on fait une extrapolation de donnees , comme pour
24c       les  SST  lorsque  le fichier ne contient pas uniquement  des points
25c     oceaniques .
26c
27c     oldice   = .T. si l'on veut garder les anciennes glaces , obtenues
28c     par  grille_m  ( grid_atob ) .
29c
30c     on cree le masque dans etat0 que l'on passe ensuite dans limit pour
31c     garder les coherences
32
33      LOGICAL interbar, extrap , oldice
34      PARAMETER ( interbar = .true. , extrap = .FALSE. , oldice=.false.)
35#include "dimensions.h"
36#include "paramet.h"
37#include "indicesol.h"
38#include  "control.h"
39      REAL :: masque(iip1,jjp1)
40!      REAL :: pctsrf(iim*(jjm-1)+2, nbsrf)
41
42      IF (config_inca /= 'none') THEN
43#ifdef INCA
44         call init_const_lmdz(
45     $        nbtr,anneeref,dayref,
46     $        iphysiq, day_step,nday)
47#endif
48         print *, 'nbtr =' , nbtr
49      END IF
50
51      CALL init_mpi
52
53
54      CALL Init_Phys_lmdz(iim,jjp1,llm,1,(/(jjm-1)*iim+2/))
55      PRINT *,'---> klon=',klon
56
57      IF (mpi_size>1 .OR. omp_size>1) THEN
58        CALL abort_gcm('create_etat0_limit','In parallel mode,
59     &                 create_etat0_limit must be called only
60     &                 for 1 process and 1 task')
61      ENDIF
62      call InitComgeomphy
63
64#ifdef CPP_IOIPSL
65      call ioconf_calendar('360d')
66#endif
67
68      WRITE(6,*) '  *********************  '
69      WRITE(6,*) ' interbar = ',interbar
70      CALL etat0_netcdf ( interbar, masque )
71c
72      WRITE(6,1)
73      WRITE(6,*) '  *********************  '
74      WRITE(6,*) '  ***  Limit_netcdf ***  '
75      WRITE(6,*) '  *********************  '
76      WRITE(6,1)
77     
78c     
79      CALL  limit_netcdf ( interbar, extrap , oldice, masque)
80
811     FORMAT(//)
82
83#endif
84! of #ifdef CPP_EARTH
85      STOP
86      END
Note: See TracBrowser for help on using the repository browser.