| 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 comgeomphy |
|---|
| 9 | USE mod_phys_lmdz_para |
|---|
| 10 | USE mod_const_mpi |
|---|
| 11 | USE infotrac |
|---|
| 12 | USE control_mod |
|---|
| 13 | #ifdef CPP_IOIPSL |
|---|
| 14 | use ioipsl, only: ioconf_calendar |
|---|
| 15 | #endif |
|---|
| 16 | IMPLICIT NONE |
|---|
| 17 | c |
|---|
| 18 | c |
|---|
| 19 | c Programme d'appel a etat0, creation des etats initiaux et limit_netcdf |
|---|
| 20 | c |
|---|
| 21 | c |
|---|
| 22 | c interbar = .T . si appel a interpol. barycentrique inter_barxy |
|---|
| 23 | c |
|---|
| 24 | c extrap = .T . si on fait une extrapolation de donnees , comme pour |
|---|
| 25 | c les SST lorsque le fichier ne contient pas uniquement des points |
|---|
| 26 | c oceaniques . |
|---|
| 27 | c |
|---|
| 28 | c oldice = .T. si l'on veut garder les anciennes glaces , obtenues |
|---|
| 29 | c par grille_m ( grid_atob ) . |
|---|
| 30 | c |
|---|
| 31 | c on cree le masque dans etat0 que l'on passe ensuite dans limit pour |
|---|
| 32 | c garder les coherences |
|---|
| 33 | |
|---|
| 34 | LOGICAL interbar, extrap , oldice |
|---|
| 35 | PARAMETER ( interbar = .true. , extrap = .FALSE. , oldice=.false.) |
|---|
| 36 | #include "dimensions.h" |
|---|
| 37 | #include "paramet.h" |
|---|
| 38 | #include "indicesol.h" |
|---|
| 39 | REAL :: masque(iip1,jjp1) |
|---|
| 40 | ! REAL :: pctsrf(iim*(jjm-1)+2, nbsrf) |
|---|
| 41 | |
|---|
| 42 | IF (config_inca /= 'none') THEN |
|---|
| 43 | #ifdef INCA |
|---|
| 44 | call init_const_lmdz( |
|---|
| 45 | $ nbtr,anneeref,dayref, |
|---|
| 46 | $ iphysiq, day_step,nday) |
|---|
| 47 | #endif |
|---|
| 48 | print *, 'nbtr =' , nbtr |
|---|
| 49 | END IF |
|---|
| 50 | |
|---|
| 51 | CALL init_mpi |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | CALL Init_Phys_lmdz(iim,jjp1,llm,1,(/(jjm-1)*iim+2/)) |
|---|
| 55 | PRINT *,'---> klon=',klon |
|---|
| 56 | |
|---|
| 57 | IF (mpi_size>1 .OR. omp_size>1) THEN |
|---|
| 58 | CALL abort_gcm('create_etat0_limit','In parallel mode, |
|---|
| 59 | & create_etat0_limit must be called only |
|---|
| 60 | & for 1 process and 1 task') |
|---|
| 61 | ENDIF |
|---|
| 62 | call InitComgeomphy |
|---|
| 63 | |
|---|
| 64 | #ifdef CPP_IOIPSL |
|---|
| 65 | call ioconf_calendar('360d') |
|---|
| 66 | #endif |
|---|
| 67 | |
|---|
| 68 | WRITE(6,*) ' ********************* ' |
|---|
| 69 | WRITE(6,*) ' interbar = ',interbar |
|---|
| 70 | CALL etat0_netcdf ( interbar, masque ) |
|---|
| 71 | c |
|---|
| 72 | WRITE(6,1) |
|---|
| 73 | WRITE(6,*) ' ********************* ' |
|---|
| 74 | WRITE(6,*) ' *** Limit_netcdf *** ' |
|---|
| 75 | WRITE(6,*) ' ********************* ' |
|---|
| 76 | WRITE(6,1) |
|---|
| 77 | |
|---|
| 78 | c |
|---|
| 79 | CALL limit_netcdf ( interbar, extrap , oldice, masque) |
|---|
| 80 | |
|---|
| 81 | 1 FORMAT(//) |
|---|
| 82 | |
|---|
| 83 | #endif |
|---|
| 84 | ! of #ifdef CPP_EARTH |
|---|
| 85 | STOP |
|---|
| 86 | END |
|---|