--- trunk/libf/dyn3d/gcm.f90 2008/03/31 12:24:17 7 +++ trunk/libf/dyn3d/gcm.f90 2008/07/25 19:59:34 13 @@ -15,7 +15,7 @@ ! Pour Van-Leer plus vapeur d'eau saturée : iadv(1)=4 ! Pour Van-Leer : iadv=10 - USE IOIPSL, only: ioconf_calendar + USE IOIPSL, only: ioconf_calendar, histclo use dimens_m, only: iim, jjm, llm, nqmx use dimphy, only: klon use paramet_m, only: ip1jm, ip1jmp1 @@ -29,7 +29,7 @@ use logic, only: iflag_phys use comgeom, only: rlatu, aire_2d, cu_2d, cv_2d, rlonv - use temps, only: day_ref, annee_ref, day_ini, day_end, itau_phy, itau_dyn + use temps, only: day_ref, annee_ref, day_ini, day_end, itau_dyn use com_io_dyn, only: histid, histvid, histaveid use tracstoke, only: istdyn, istphy use abort_gcm_m, only: abort_gcm @@ -40,10 +40,10 @@ use advtrac_m, only: iniadvtrac use leapfrog_m, only: leapfrog use dynredem0_m, only: dynredem0 + use clesphys2, only: read_clesphys2 IMPLICIT NONE - REAL clesphy0(20) REAL zdtvr ! time step for dynamics, in s ! Variables dynamiques : @@ -92,7 +92,8 @@ endif ! Lecture des fichiers "gcm.def" ou "run.def" : - CALL conf_gcm(clesphy0) + call read_clesphys2 + CALL conf_gcm ! Initialisation des traceurs ! Choix du schéma pour l'advection dans le fichier "traceur.def" ou via INCA @@ -100,20 +101,6 @@ ! Lecture du fichier "start.nc" : CALL dynetat0(vcov, ucov, teta, q, masse, ps, phis, time_0) - ! Begin special experiment -!!$ print *, "This is a special experiment." -!!$ print *, "We are setting:" -!!$ print *, "ucov = vcov = 0, q = 0, ps = 101325" -!!$ print *, "We are averaging 'teta' horizontally." -!!$ ucov = 0. -!!$ vcov = 0. -!!$ q = 0. -!!$ ps = 101325. - ! Average teta over all longitudes and latitudes: -!!$ forall(i = 1:llm) teta(:,i) = sum(teta(:,i)) / ip1jmp1 - ! (it would be better to weight each element with an associated - ! surface area) - ! End special experiment ! Lecture des paramètres de contrôle pour la simulation : ! on recalcule éventuellement le pas de temps @@ -141,7 +128,6 @@ day_ref = dayref day_ini = dayref itau_dyn = 0 - itau_phy = 0 time_0 = 0. endif ELSE @@ -217,6 +203,10 @@ istphy = istdyn / iphysiq ! Intégration temporelle du modèle : - CALL leapfrog(ucov, vcov, teta, ps, masse, phis, nq, q, clesphy0, time_0) + CALL leapfrog(ucov, vcov, teta, ps, masse, phis, nq, q, time_0) + + call histclo + print *, 'Simulation finished' + print *, 'Everything is cool' END PROGRAM gcm