[524] | 1 | ! |
---|
| 2 | ! $Header$ |
---|
| 3 | ! |
---|
| 4 | PROGRAM create_etat0_limit |
---|
[762] | 5 | USE dimphy |
---|
| 6 | USE comgeomphy |
---|
| 7 | |
---|
[524] | 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 |
---|
[762] | 23 | c garder les coherences |
---|
[524] | 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" |
---|
[822] | 30 | #include "advtrac.h" |
---|
[762] | 31 | cym#include "dimphy.h" |
---|
[524] | 32 | REAL :: masque(iip1,jjp1) |
---|
[762] | 33 | REAL :: pctsrf(iim*(jjm-1)+2, nbsrf) |
---|
[524] | 34 | |
---|
[822] | 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 | #ifdef INCA |
---|
| 46 | call init_const_lmdz(nbtrac,anneeref,dayref,iphysiq,day_step,nday) |
---|
| 47 | print *, 'nbtrac =' , nbtrac |
---|
| 48 | #endif |
---|
| 49 | |
---|
[773] | 50 | CALL Init_Phys_lmdz(iim,jjp1,llm,nqmx-2,1,(jjm-1)*iim+2) |
---|
[762] | 51 | call InitComgeomphy |
---|
[773] | 52 | |
---|
[524] | 53 | WRITE(6,*) ' ********************* ' |
---|
| 54 | WRITE(6,*) ' interbar = ',interbar |
---|
| 55 | CALL etat0_netcdf ( interbar, masque, pctsrf ) |
---|
| 56 | c |
---|
| 57 | WRITE(6,1) |
---|
| 58 | WRITE(6,*) ' ********************* ' |
---|
| 59 | WRITE(6,*) ' *** Limit_netcdf *** ' |
---|
| 60 | WRITE(6,*) ' ********************* ' |
---|
| 61 | WRITE(6,1) |
---|
[762] | 62 | |
---|
| 63 | c |
---|
[524] | 64 | CALL limit_netcdf ( interbar, extrap , oldice, masque, pctsrf ) |
---|
| 65 | |
---|
| 66 | 1 FORMAT(//) |
---|
| 67 | |
---|
| 68 | STOP |
---|
| 69 | END |
---|