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