| 1 | ! |
|---|
| 2 | ! $Id: create_etat0_limit.F 1299 2010-01-20 14:27:21Z jghattas $ |
|---|
| 3 | ! |
|---|
| 4 | PROGRAM create_etat0_limit |
|---|
| 5 | #ifdef CPP_EARTH |
|---|
| 6 | ! This prog. is designed to work for Earth |
|---|
| 7 | USE dimphy |
|---|
| 8 | USE control_mod |
|---|
| 9 | USE comgeomphy |
|---|
| 10 | USE infotrac |
|---|
| 11 | #ifdef CPP_IOIPSL |
|---|
| 12 | use ioipsl, only: ioconf_calendar |
|---|
| 13 | #endif |
|---|
| 14 | IMPLICIT NONE |
|---|
| 15 | c |
|---|
| 16 | c |
|---|
| 17 | c Programme d'appel a etat0, creation des etats initiaux et limit_netcdf |
|---|
| 18 | c |
|---|
| 19 | c |
|---|
| 20 | c interbar = .T . si appel a interpol. barycentrique inter_barxy |
|---|
| 21 | c |
|---|
| 22 | c extrap = .T . si on fait une extrapolation de donnees , comme pour |
|---|
| 23 | c les SST lorsque le fichier ne contient pas uniquement des points |
|---|
| 24 | c oceaniques . |
|---|
| 25 | c |
|---|
| 26 | c oldice = .T. si l'on veut garder les anciennes glaces , obtenues |
|---|
| 27 | c par grille_m ( grid_atob ) . |
|---|
| 28 | c |
|---|
| 29 | c on cree le masque dans etat0 que l'on passe ensuite dans limit pour |
|---|
| 30 | c garder les coherences |
|---|
| 31 | |
|---|
| 32 | LOGICAL interbar, extrap , oldice |
|---|
| 33 | PARAMETER ( interbar = .true. , extrap = .FALSE. , oldice=.false.) |
|---|
| 34 | #include "dimensions.h" |
|---|
| 35 | #include "paramet.h" |
|---|
| 36 | #include "indicesol.h" |
|---|
| 37 | REAL :: masque(iip1,jjp1) |
|---|
| 38 | ! REAL :: pctsrf(iim*(jjm-1)+2, nbsrf) |
|---|
| 39 | |
|---|
| 40 | IF (config_inca /= 'none') THEN |
|---|
| 41 | #ifdef INCA |
|---|
| 42 | call init_const_lmdz( |
|---|
| 43 | $ nbtr,anneeref,dayref, |
|---|
| 44 | $ iphysiq, day_step,nday) |
|---|
| 45 | #endif |
|---|
| 46 | print *, 'nbtr =' , nbtr |
|---|
| 47 | END IF |
|---|
| 48 | |
|---|
| 49 | CALL Init_Phys_lmdz(iim,jjp1,llm,1,(/(jjm-1)*iim+2/)) |
|---|
| 50 | PRINT *,'---> klon=',klon |
|---|
| 51 | call InitComgeomphy |
|---|
| 52 | |
|---|
| 53 | #ifdef CPP_IOIPSL |
|---|
| 54 | call ioconf_calendar('360d') |
|---|
| 55 | #endif |
|---|
| 56 | |
|---|
| 57 | WRITE(6,*) ' ********************* ' |
|---|
| 58 | WRITE(6,*) ' interbar = ',interbar |
|---|
| 59 | CALL etat0_netcdf ( interbar, masque ) |
|---|
| 60 | c |
|---|
| 61 | WRITE(6,1) |
|---|
| 62 | WRITE(6,*) ' ********************* ' |
|---|
| 63 | WRITE(6,*) ' *** Limit_netcdf *** ' |
|---|
| 64 | WRITE(6,*) ' ********************* ' |
|---|
| 65 | WRITE(6,1) |
|---|
| 66 | |
|---|
| 67 | c |
|---|
| 68 | CALL limit_netcdf ( interbar, extrap , oldice, masque) |
|---|
| 69 | |
|---|
| 70 | 1 FORMAT(//) |
|---|
| 71 | |
|---|
| 72 | #endif |
|---|
| 73 | ! of #ifdef CPP_EARTH |
|---|
| 74 | STOP |
|---|
| 75 | END |
|---|