source: LMDZ4/trunk/libf/phylmd/iniphysiq.F @ 776

Last change on this file since 776 was 776, checked in by Laurent Fairhead, 17 years ago

Suite du merge entre la version et la HEAD: quelques modifications
de Yann sur le

LF

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1!
2! $Header$
3!
4c
5c
6      SUBROUTINE iniphysiq(ngrid,nlayer,
7     $           punjours,
8     $           pdayref,ptimestep,
9     $           plat,plon,parea,pcu,pcv,
10     $           prad,pg,pr,pcpp)
11      USE dimphy
12      USE mod_grid_phy_lmdz
13      USE mod_phys_lmdz_para
14      USE comgeomphy
15      IMPLICIT NONE
16c
17c=======================================================================
18c
19c   subject:
20c   --------
21c
22c   Initialisation for the physical parametrisations of the LMD
23c   martian atmospheric general circulation modele.
24c
25c   author: Frederic Hourdin 15 / 10 /93
26c   -------
27c
28c   arguments:
29c   ----------
30c
31c   input:
32c   ------
33c
34c    ngrid                 Size of the horizontal grid.
35c                          All internal loops are performed on that grid.
36c    nlayer                Number of vertical layers.
37c    pdayref               Day of reference for the simulation
38c    firstcall             True at the first call
39c    lastcall              True at the last call
40c    pday                  Number of days counted from the North. Spring
41c                          equinoxe.
42c
43c=======================================================================
44c
45c-----------------------------------------------------------------------
46c   declarations:
47c   -------------
48 
49cym#include "dimensions.h"
50cym#include "dimphy.h"
51cym#include "comgeomphy.h"
52#include "YOMCST.h"
53      REAL prad,pg,pr,pcpp,punjours
54 
55      INTEGER ngrid,nlayer
56      REAL plat(ngrid),plon(ngrid),parea(klon_glo)
57      REAL pcu(klon_glo),pcv(klon_glo)
58      INTEGER pdayref
59      INTEGER :: ibegin,iend
60 
61      REAL ptimestep
62 
63      IF (nlayer.NE.klev) THEN
64         PRINT*,'STOP in inifis'
65         PRINT*,'Probleme de dimensions :'
66         PRINT*,'nlayer     = ',nlayer
67         PRINT*,'klev   = ',klev
68         STOP
69      ENDIF
70
71      IF (ngrid.NE.klon_glo) THEN
72         PRINT*,'STOP in inifis'
73         PRINT*,'Probleme de dimensions :'
74         PRINT*,'ngrid     = ',ngrid
75         PRINT*,'klon   = ',klon_glo
76         STOP
77      ENDIF
78c$OMP PARALLEL PRIVATE(ibegin,iend)
79c$OMP+         SHARED(parea,pcu,pcv,plon,plat)
80
81      airephy(1:klon_omp)=parea(klon_omp_begin:klon_omp_end)
82      cuphy(1:klon_omp)=pcu(klon_omp_begin:klon_omp_end)
83      cvphy(1:klon_omp)=pcv(klon_omp_begin:klon_omp_end)
84      rlond(1:klon_omp) = plon(klon_omp_begin:klon_omp_end)
85      rlatd(1:klon_omp) = plat(klon_omp_begin:klon_omp_end)
86
87      call suphec
88
89c$OMP END PARALLEL
90
91      print*,'ATTENTION !!! TRAVAILLER SUR INIPHYSIQ'
92      print*,'CONTROLE DES LATITUDES, LONGITUDES, PARAMETRES ...'
93
94
95      RETURN
969999  STOP'Cette version demande les fichier rnatur.dat et surf.def'
97      END
Note: See TracBrowser for help on using the repository browser.