| 1 | ! |
|---|
| 2 | ! $Header$ |
|---|
| 3 | ! |
|---|
| 4 | PROGRAM create_etat0_limit |
|---|
| 5 | USE dimphy |
|---|
| 6 | USE comgeomphy |
|---|
| 7 | |
|---|
| 8 | c |
|---|
| 9 | c |
|---|
| 10 | c Programme d'appel a etat0, creation des etats initiaux et limit_netcdf |
|---|
| 11 | c |
|---|
| 12 | c |
|---|
| 13 | c interbar = .T . si appel a interpol. barycentrique inter_barxy |
|---|
| 14 | c |
|---|
| 15 | c extrap = .T . si on fait une extrapolation de donnees , comme pour |
|---|
| 16 | c les SST lorsque le fichier ne contient pas uniquement des points |
|---|
| 17 | c oceaniques . |
|---|
| 18 | c |
|---|
| 19 | c oldice = .T. si l'on veut garder les anciennes glaces , obtenues |
|---|
| 20 | c par grille_m ( grid_atob ) . |
|---|
| 21 | c |
|---|
| 22 | c on cree le masque dans etat0 que l'on passe ensuite dans limit pour |
|---|
| 23 | c garder les coherences |
|---|
| 24 | |
|---|
| 25 | LOGICAL interbar, extrap , oldice |
|---|
| 26 | PARAMETER ( interbar = .true. , extrap = .FALSE. , oldice=.false.) |
|---|
| 27 | #include "dimensions.h" |
|---|
| 28 | #include "paramet.h" |
|---|
| 29 | #include "indicesol.h" |
|---|
| 30 | #include "advtrac.h" |
|---|
| 31 | #include "control.h" |
|---|
| 32 | REAL :: masque(iip1,jjp1) |
|---|
| 33 | ! REAL :: pctsrf(iim*(jjm-1)+2, nbsrf) |
|---|
| 34 | |
|---|
| 35 | c initialisation traceurs |
|---|
| 36 | hadv_flg(:) = 0. |
|---|
| 37 | vadv_flg(:) = 0. |
|---|
| 38 | conv_flg(:) = 0. |
|---|
| 39 | pbl_flg(:) = 0. |
|---|
| 40 | tracnam(:) = ' ' |
|---|
| 41 | nprath = 1 |
|---|
| 42 | nbtrac = 0 |
|---|
| 43 | mmt_adj(:,:,:,:) = 1 |
|---|
| 44 | |
|---|
| 45 | IF (config_inca /= 'none') THEN |
|---|
| 46 | #ifdef INCA |
|---|
| 47 | call init_const_lmdz( |
|---|
| 48 | $ nbtrac,anneeref,dayref, |
|---|
| 49 | $ iphysiq, day_step,nday) |
|---|
| 50 | #endif |
|---|
| 51 | print *, 'nbtrac =' , nbtrac |
|---|
| 52 | END IF |
|---|
| 53 | |
|---|
| 54 | CALL Init_Phys_lmdz(iim,jjp1,llm,nqmx-2,1,(jjm-1)*iim+2) |
|---|
| 55 | call InitComgeomphy |
|---|
| 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 | STOP |
|---|
| 73 | END |
|---|