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