source: LMDZ4/trunk/libf/dyn3dpar/create_etat0_limit.F @ 1280

Last change on this file since 1280 was 1279, checked in by Laurent Fairhead, 15 years ago

Merged LMDZ4-dev branch changes r1241:1278 into the trunk
Running trunk and LMDZ4-dev in LMDZOR configuration on local
machine (sequential) and SX8 (4-proc) yields identical results
(restart and restartphy are identical binarily)
Log history from r1241 to r1278 is available by switching to
source:LMDZ4/branches/LMDZ4-dev-20091210

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
RevLine 
[1000]1!
[1279]2! $Id: create_etat0_limit.F 1279 2009-12-10 09:02:56Z fairhead $
[1000]3!
4       PROGRAM create_etat0_limit
[1279]5#ifdef CPP_EARTH
6! This prog. is designed to work for Earth
[1000]7       USE dimphy
8       USE comgeomphy
9       USE mod_phys_lmdz_para
10       USE mod_const_mpi
[1146]11       USE infotrac
[1279]12#ifdef CPP_IOIPSL
13       use ioipsl, only: ioconf_calendar
14#endif
[1000]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
[1017]44         call init_const_lmdz(
[1146]45     $        nbtr,anneeref,dayref,
[1279]46     $        iphysiq, day_step,nday)
[1000]47#endif
[1146]48         print *, 'nbtr =' , nbtr
[1000]49      END IF
50
51      CALL init_mpi
52
53
[1146]54      CALL Init_Phys_lmdz(iim,jjp1,llm,1,(/(jjm-1)*iim+2/))
[1000]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
[1279]64#ifdef CPP_IOIPSL
65      call ioconf_calendar('360d')
66#endif
67
[1000]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
[1279]83#endif
84! of #ifdef CPP_EARTH
[1000]85      STOP
86      END
Note: See TracBrowser for help on using the repository browser.