24 |
! L. Fairhead, 03/99 |
! L. Fairhead, 03/99 |
25 |
|
|
26 |
USE comconst |
USE comconst |
|
USE comgeom |
|
27 |
use conf_gcm_m |
use conf_gcm_m |
28 |
USE dimens_m |
USE dimens_m |
29 |
USE disvert_m |
USE disvert_m |
30 |
|
use dynetat0_m, only: day_ref, annee_ref, rlonu, rlatu, rlonv, rlatv |
31 |
USE histbeg_totreg_m, ONLY : histbeg_totreg |
USE histbeg_totreg_m, ONLY : histbeg_totreg |
32 |
USE histdef_m, ONLY : histdef |
USE histdef_m, ONLY : histdef |
33 |
USE histend_m, ONLY : histend |
USE histend_m, ONLY : histend |
36 |
USE histvert_m, ONLY : histvert |
USE histvert_m, ONLY : histvert |
37 |
USE nr_util, ONLY : pi |
USE nr_util, ONLY : pi |
38 |
USE paramet_m |
USE paramet_m |
39 |
USE serre |
USE temps, ONLY : itau_dyn |
|
USE temps, ONLY : annee_ref, day_ref, itau_dyn |
|
40 |
use ymds2ju_m, only: ymds2ju |
use ymds2ju_m, only: ymds2ju |
41 |
|
|
42 |
IMPLICIT NONE |
IMPLICIT NONE |
51 |
|
|
52 |
! Variables locales |
! Variables locales |
53 |
REAL zjulian |
REAL zjulian |
54 |
CHARACTER*3 str |
CHARACTER(len=3) str |
55 |
CHARACTER*10 ctrac |
CHARACTER(len=10) ctrac |
56 |
INTEGER iq |
INTEGER iq |
57 |
REAL rlong(iip1, jjp1), rlat(iip1, jjp1) |
REAL rlong(iip1, jjp1), rlat(iip1, jjp1) |
58 |
INTEGER uhoriid, vhoriid, thoriid, zvertiid, dhoriid, dvertiid |
INTEGER uhoriid, vhoriid, thoriid, zvertiid, dhoriid, dvertiid |
59 |
INTEGER ii, jj, l |
INTEGER ii, jj, l |
|
INTEGER zan, idayref |
|
60 |
LOGICAL ok_sync |
LOGICAL ok_sync |
61 |
|
|
62 |
!--------------------------------------------------------- |
!--------------------------------------------------------- |
68 |
|
|
69 |
! Appel a histbeg: creation du fichier netcdf et initialisations diverses |
! Appel a histbeg: creation du fichier netcdf et initialisations diverses |
70 |
|
|
71 |
zan = annee_ref |
CALL ymds2ju(annee_ref, 1, day_ref, 0.0, zjulian) |
|
idayref = day_ref |
|
|
CALL ymds2ju(zan, 1, idayref, 0.0, zjulian) |
|
72 |
|
|
73 |
DO jj = 1, jjp1 |
DO jj = 1, jjp1 |
74 |
DO ii = 1, iip1 |
DO ii = 1, iip1 |