source: LMDZ4/trunk/libf/phylmd/thermcell_closure.F90 @ 1413

Last change on this file since 1413 was 1403, checked in by Laurent Fairhead, 14 years ago

Merged LMDZ4V5.0-dev branch changes r1292:r1399 to trunk.

Validation:
Validation consisted in compiling the HEAD revision of the trunk,
LMDZ4V5.0-dev branch and the merged sources and running different
configurations on local and SX8 machines comparing results.

Local machine: bench configuration, 32x24x11, gfortran

  • IPSLCM5A configuration (comparison between trunk and merged sources):
    • numerical convergence on dynamical fields over 3 days
    • start files are equivalent (except for RN and PB fields)
    • daily history files equivalent
  • MH07 configuration, new physics package (comparison between LMDZ4V5.0-dev branch and merged sources):
    • numerical convergence on dynamical fields over 3 days
    • start files are equivalent (except for RN and PB fields)
    • daily history files equivalent

SX8 machine (brodie), 96x95x39 on 4 processors:

  • IPSLCM5A configuration:
    • start files are equivalent (except for RN and PB fields)
    • monthly history files equivalent
  • MH07 configuration:
    • start files are equivalent (except for RN and PB fields)
    • monthly history files equivalent

Changes to the makegcm and create_make_gcm scripts to take into account
main programs in F90 files


Fusion de la branche LMDZ4V5.0-dev (r1292:r1399) au tronc principal

Validation:
La validation a consisté à compiler la HEAD de le trunk et de la banche
LMDZ4V5.0-dev et les sources fusionnées et de faire tourner le modéle selon
différentes configurations en local et sur SX8 et de comparer les résultats

En local: 32x24x11, config bench/gfortran

  • pour une config IPSLCM5A (comparaison tronc/fusion):
    • convergence numérique sur les champs dynamiques après 3 jours
    • restart et restartphy égaux (à part sur RN et Pb)
    • fichiers histoire égaux
  • pour une config nlle physique (MH07) (comparaison LMDZ4v5.0-dev/fusion):
    • convergence numérique sur les champs dynamiques après 3 jours
    • restart et restartphy égaux
    • fichiers histoire équivalents

Sur brodie, 96x95x39 sur 4 proc:

  • pour une config IPSLCM5A:
    • restart et restartphy égaux (à part sur RN et PB)
    • pas de différence dans les fichiers histmth.nc
  • pour une config MH07
    • restart et restartphy égaux (à part sur RN et PB)
    • pas de différence dans les fichiers histmth.nc

Changement sur makegcm et create_make-gcm pour pouvoir prendre en compte des
programmes principaux en *F90

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1!
2! $Header$
3!
4      SUBROUTINE thermcell_closure(ngrid,nlay,r_aspect,ptimestep,rho,  &
5     &   zlev,lalim,alim_star,f_star,zmax,wmax,f,lev_out)
6
7!-------------------------------------------------------------------------
8!thermcell_closure: fermeture, determination de f
9!
10! Modification 7 septembre 2009
11! 1. On enleve alim_star_tot des arguments pour le recalculer et etre ainis
12! coherent avec l'integrale au numerateur.
13! 2. On ne garde qu'une version des couples wmax,zmax et wmax_sec,zmax_sec
14! l'idee etant que le choix se fasse a l'appel de thermcell_closure
15! 3. Vectorisation en mettant les boucles en l l'exterieur avec des if
16!-------------------------------------------------------------------------
17      IMPLICIT NONE
18
19#include "iniprint.h"
20#include "thermcell.h"
21INTEGER ngrid,nlay
22INTEGER ig,k       
23REAL r_aspect,ptimestep
24integer lev_out                           ! niveau pour les print
25
26INTEGER lalim(ngrid)
27REAL alim_star(ngrid,nlay)
28REAL f_star(ngrid,nlay+1)
29REAL rho(ngrid,nlay)
30REAL zlev(ngrid,nlay)
31REAL zmax(ngrid)
32REAL wmax(ngrid)
33REAL zdenom(ngrid)
34REAL alim_star2(ngrid)
35REAL f(ngrid)
36
37REAL alim_star_tot(ngrid)
38INTEGER llmax
39
40!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
41!print*,'THERMCELL CLOSURE 26E'
42
43alim_star2(:)=0.
44alim_star_tot(:)=0.
45f(:)=0.
46
47! Indice vertical max (max de lalim) atteint par les thermiques sur le domaine
48llmax=1
49do ig=1,ngrid
50   if (lalim(ig)>llmax) llmax=lalim(ig)
51enddo
52
53
54! Calcul des integrales sur la verticale de alim_star et de
55!   alim_star^2/(rho dz)
56do k=1,llmax-1
57   do ig=1,ngrid
58      if (k<lalim(ig)) then
59         alim_star2(ig)=alim_star2(ig)+alim_star(ig,k)**2  &
60&                    /(rho(ig,k)*(zlev(ig,k+1)-zlev(ig,k)))
61         alim_star_tot(ig)=alim_star_tot(ig)+alim_star(ig,k)
62      endif
63   enddo
64enddo
65
66
67do ig=1,ngrid
68   if (alim_star2(ig)>1.e-10) then
69      f(ig)=wmax(ig)*alim_star_tot(ig)/  &
70&     (max(500.,zmax(ig))*r_aspect*alim_star2(ig))
71   endif
72enddo
73
74
75!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
76! TESTS POUR UNE NOUVELLE FERMETURE DANS LAQUELLE ALIM_STAR NE SERAIT
77! PAS NORMALISE
78!           f(ig)=f(ig)*f_star(ig,2)/(f_star(ig,lalim(ig)))
79!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
80
81      return
82      end
Note: See TracBrowser for help on using the repository browser.