--- trunk/libf/dyn3d/gcm.f90 2010/12/21 15:45:48 37 +++ trunk/libf/dyn3d/gcm.f90 2011/04/08 12:43:31 43 @@ -2,17 +2,15 @@ ! Authors: P. Le Van, L. Fairhead, F. Hourdin ! From "gcm.F", version 1.4, 2006/04/04 15:05:16 - ! General circulation model of LMD - ! Avec coordonnées verticales hybrides, avec nouveaux opérateurs de - ! dissipation "*" (gradiv2, divgrad2, nxgraro2) - ! Possibilité de choisir le schéma pour l'advection de "q", en - ! modifiant "iadv" dans "traceur.def". - ! Pour Van-Leer plus vapeur d'eau saturée : iadv(1)=4 - ! Pour Van-Leer : iadv=10 + + ! General circulation model of LMD. Avec coordonnée verticale + ! hybride, avec nouveaux opérateurs de dissipation "*" ("gradiv2", + ! "divgrad2", "nxgraro2"). Possibilité de choisir le schéma pour + ! l'advection de "q", en modifiant "iadv" dans "traceur.def". use clesphys2, only: read_clesphys2 use com_io_dyn, only: histid, histvid, histaveid - use comconst, only: daysec, cpp, dtvr, g, rad, r, initialize + use comconst, only: daysec, cpp, dtvr, g, rad, r use comgeom, only: rlatu, aire_2d, cu_2d, cv_2d, rlonv use comgeomphy, only: airephy, cuphy, cvphy, rlatd, rlond use conf_gcm_m, only: day_step, iperiod, anneeref, dayref, iecri, iphysiq, & @@ -35,6 +33,7 @@ use suphec_m, only: suphec use temps, only: day_ref, annee_ref, day_end, itau_dyn use tracstoke, only: istdyn, istphy + use yoethf_m, only: yoethf IMPLICIT NONE @@ -42,9 +41,9 @@ ! Variables dynamiques : REAL vcov(ip1jm, llm), ucov(ip1jmp1, llm) ! vents covariants - REAL teta(ip1jmp1, llm) ! température potentielle - REAL q(ip1jmp1, llm, nqmx) ! champs advectés - REAL ps(ip1jmp1) ! pression au sol (Pa) + REAL teta(iim + 1, jjm + 1, llm) ! température potentielle + REAL q(iim + 1, jjm + 1, llm, nqmx) ! champs advectés + REAL ps(iim + 1, jjm + 1) ! pression au sol (Pa) REAL masse(ip1jmp1, llm) ! masse d'air REAL phis(iim + 1, jjm + 1) ! géopotentiel au sol @@ -67,9 +66,6 @@ read (unit=*, nml=main_nml) write(unit=*, nml=main_nml) - ! Initialisations: - call initialize - ! Choix du calendrier : if (true_calendar) then call ioconf_calendar('gregorian') @@ -146,6 +142,7 @@ airephy = pack(aire_2d, dyn_phy) CALL suphec + call yoethf ENDIF ! Initialisation des entrées-sorties :