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

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

Réintegration dans le tronc des modifications issues de la branche LMDZ-dev
comprises entre la révision 1074 et 1145
Validation: une simulation de 1 jour en séquentiel sur PC donne les mêmes
résultats entre la trunk et la dev
LF

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