1 | ! |
---|
2 | ! $Header$ |
---|
3 | ! |
---|
4 | c |
---|
5 | c |
---|
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 |
---|
16 | c |
---|
17 | c======================================================================= |
---|
18 | c |
---|
19 | c subject: |
---|
20 | c -------- |
---|
21 | c |
---|
22 | c Initialisation for the physical parametrisations of the LMD |
---|
23 | c martian atmospheric general circulation modele. |
---|
24 | c |
---|
25 | c author: Frederic Hourdin 15 / 10 /93 |
---|
26 | c ------- |
---|
27 | c |
---|
28 | c arguments: |
---|
29 | c ---------- |
---|
30 | c |
---|
31 | c input: |
---|
32 | c ------ |
---|
33 | c |
---|
34 | c ngrid Size of the horizontal grid. |
---|
35 | c All internal loops are performed on that grid. |
---|
36 | c nlayer Number of vertical layers. |
---|
37 | c pdayref Day of reference for the simulation |
---|
38 | c firstcall True at the first call |
---|
39 | c lastcall True at the last call |
---|
40 | c pday Number of days counted from the North. Spring |
---|
41 | c equinoxe. |
---|
42 | c |
---|
43 | c======================================================================= |
---|
44 | c |
---|
45 | c----------------------------------------------------------------------- |
---|
46 | c declarations: |
---|
47 | c ------------- |
---|
48 | |
---|
49 | cym#include "dimensions.h" |
---|
50 | cym#include "dimphy.h" |
---|
51 | cym#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 |
---|
78 | c$OMP PARALLEL PRIVATE(ibegin,iend) |
---|
79 | c$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 | |
---|
89 | c$OMP END PARALLEL |
---|
90 | |
---|
91 | print*,'ATTENTION !!! TRAVAILLER SUR INIPHYSIQ' |
---|
92 | print*,'CONTROLE DES LATITUDES, LONGITUDES, PARAMETRES ...' |
---|
93 | |
---|
94 | |
---|
95 | RETURN |
---|
96 | 9999 STOP'Cette version demande les fichier rnatur.dat et surf.def' |
---|
97 | END |
---|