source: LMDZ4/trunk/libf/bibio/writedynav.F @ 1403

Last change on this file since 1403 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: 3.4 KB
Line 
1!
2! $Id: writedynav.F 1403 2010-07-01 09:02:53Z fairhead $
3!
4      subroutine writedynav(time, vcov,
5     ,                ucov,teta,ppk,phi,q,masse,ps,phis)
6
7#ifdef CPP_IOIPSL
8      USE ioipsl
9#endif
10      USE infotrac, ONLY : nqtot, ttext
11      use com_io_dyn_mod, only : histaveid,histvaveid,histuaveid
12      implicit none
13
14C
15C   Ecriture du fichier histoire au format IOIPSL
16C
17C   Appels succesifs des routines: histwrite
18C
19C   Entree:
20C      time: temps de l'ecriture
21C      vcov: vents v covariants
22C      ucov: vents u covariants
23C      teta: temperature potentielle
24C      phi : geopotentiel instantane
25C      q   : traceurs
26C      masse: masse
27C      ps   :pression au sol
28C      phis : geopotentiel au sol
29C     
30C
31C
32C   L. Fairhead, LMD, 03/99
33C
34C =====================================================================
35C
36C   Declarations
37#include "dimensions.h"
38#include "paramet.h"
39#include "comconst.h"
40#include "comvert.h"
41#include "comgeom.h"
42#include "temps.h"
43#include "ener.h"
44#include "logic.h"
45#include "description.h"
46#include "serre.h"
47#include "iniprint.h"
48
49C
50C   Arguments
51C
52
53      REAL vcov(ip1jm,llm),ucov(ip1jmp1,llm)
54      REAL teta(ip1jmp1*llm),phi(ip1jmp1,llm),ppk(ip1jmp1*llm)     
55      REAL ps(ip1jmp1),masse(ip1jmp1,llm)                   
56      REAL phis(ip1jmp1)                 
57      REAL q(ip1jmp1,llm,nqtot)
58      integer time
59
60
61#ifdef CPP_IOIPSL
62! This routine needs IOIPSL to work
63C   Variables locales
64C
65      integer ndex2d(ip1jmp1),ndexu(ip1jmp1*llm),ndexv(ip1jm*llm)
66      INTEGER iq, ii, ll
67      real tm(ip1jmp1*llm)
68      REAL vnat(ip1jm,llm),unat(ip1jmp1,llm)
69      logical ok_sync
70      integer itau_w
71C
72C  Initialisations
73C
74      ndexu = 0
75      ndexv = 0
76      ndex2d = 0
77      ok_sync = .TRUE.
78      tm = 999.999
79      vnat = 999.999
80      unat = 999.999
81      itau_w = itau_dyn + time
82
83C Passage aux composantes naturelles du vent
84      call covnat(llm, ucov, vcov, unat, vnat)
85
86C
87C  Appels a histwrite pour l'ecriture des variables a sauvegarder
88C
89C  Vents U
90C
91      call histwrite(histuaveid, 'u', itau_w, unat,
92     .               iip1*jjp1*llm, ndexu)
93C
94C  Vents V
95C
96      call histwrite(histvaveid, 'v', itau_w, vnat,
97     .               iip1*jjm*llm, ndexv)
98C
99C  Temperature potentielle moyennee
100C
101      call histwrite(histaveid, 'theta', itau_w, teta,
102     .                iip1*jjp1*llm, ndexu)
103C
104C  Temperature moyennee
105C
106      do ii = 1, ijp1llm
107        tm(ii) = teta(ii) * ppk(ii)/cpp
108      enddo
109      call histwrite(histaveid, 'temp', itau_w, tm,
110     .                iip1*jjp1*llm, ndexu)
111C
112C  Geopotentiel
113C
114      call histwrite(histaveid, 'phi', itau_w, phi,
115     .                iip1*jjp1*llm, ndexu)
116C
117C  Traceurs
118C
119!        DO iq=1,nqtot
120!          call histwrite(histaveid, ttext(iq), itau_w, q(:,:,iq),
121!     .                   iip1*jjp1*llm, ndexu)
122!        enddo
123C
124C  Masse
125C
126       call histwrite(histaveid, 'masse', itau_w, masse,
127     $                   iip1*jjp1*llm, ndexu)
128C
129C  Pression au sol
130C
131       call histwrite(histaveid, 'ps', itau_w, ps, iip1*jjp1, ndex2d)
132C
133C  Geopotentiel au sol
134C
135!       call histwrite(histaveid,'phis',itau_w, phis,iip1*jjp1, ndex2d)
136C
137C  Fin
138C
139      if (ok_sync) then
140          call histsync(histaveid)
141          call histsync(histvaveid)
142          call histsync(histuaveid)
143      ENDIF
144
145#else
146! tell the user this routine should be run with ioipsl
147      write(lunout,*)"writedynav: Warning this routine should not be",
148     &               " used without ioipsl"
149#endif
150! of #ifdef CPP_IOIPSL
151      return
152      end
Note: See TracBrowser for help on using the repository browser.