source: LMDZ4/trunk/libf/phylmd/thermcell_init.F90 @ 1409

Last change on this file since 1409 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: 1.6 KB
Line 
1!
2! $Header$
3!
4      SUBROUTINE thermcell_init(ngrid,nlay,ztv,zlay,zlev,  &
5     &                  lalim,lmin,alim_star,alim_star_tot,lev_out)
6
7!----------------------------------------------------------------------
8!thermcell_init: calcul du profil d alimentation du thermique
9!----------------------------------------------------------------------
10      IMPLICIT NONE
11#include "iniprint.h"
12#include "thermcell.h"
13
14      INTEGER l,ig
15!arguments d entree
16      INTEGER ngrid,nlay
17      REAL ztv(ngrid,nlay)
18      REAL zlay(ngrid,nlay)
19      REAL zlev(ngrid,nlay+1)
20!arguments de sortie
21      INTEGER lalim(ngrid)
22      INTEGER lmin(ngrid)
23      REAL alim_star(ngrid,nlay)
24      REAL alim_star_tot(ngrid)
25      integer lev_out                           ! niveau pour les print
26     
27      REAL zzalim(ngrid)
28!CR: ponderation entrainement des couches instables
29!def des alim_star tels que alim=f*alim_star     
30
31
32      write(lunout,*)'THERM INIT V20C '
33
34      alim_star_tot(:)=0.
35      alim_star(:,:)=0.
36      lmin(:)=1
37      lalim(:)=1
38
39      do l=1,nlay-1
40         do ig=1,ngrid
41            if (ztv(ig,l)> ztv(ig,l+1) .and. ztv(ig,1)>=ztv(ig,l) ) then
42               alim_star(ig,l)=MAX((ztv(ig,l)-ztv(ig,l+1)),0.)  &
43     &                       *sqrt(zlev(ig,l+1))
44               lalim(:)=l+1
45               alim_star_tot(ig)=alim_star_tot(ig)+alim_star(ig,l)
46            endif
47         enddo
48      enddo
49      do l=1,nlay
50         do ig=1,ngrid
51            if (alim_star_tot(ig) > 1.e-10 ) then
52               alim_star(ig,l)=alim_star(ig,l)/alim_star_tot(ig)
53            endif
54         enddo
55      enddo
56      alim_star_tot(:)=1.
57
58      return
59      end 
Note: See TracBrowser for help on using the repository browser.