! ! $Header$ ! c c SUBROUTINE iniphysiq(ngrid,nlayer, $ punjours, $ pdayref,ptimestep, $ plat,plon,parea,pcu,pcv, $ prad,pg,pr,pcpp) USE dimphy,klon2=>klon,klon=>klon2 USE comgeomphy IMPLICIT NONE c c======================================================================= c c subject: c -------- c c Initialisation for the physical parametrisations of the LMD c martian atmospheric general circulation modele. c c author: Frederic Hourdin 15 / 10 /93 c ------- c c arguments: c ---------- c c input: c ------ c c ngrid Size of the horizontal grid. c All internal loops are performed on that grid. c nlayer Number of vertical layers. c pdayref Day of reference for the simulation c firstcall True at the first call c lastcall True at the last call c pday Number of days counted from the North. Spring c equinoxe. c c======================================================================= c c----------------------------------------------------------------------- c declarations: c ------------- cym#include "dimensions.h" cym#include "dimphy.h" cym#include "comgeomphy.h" #include "YOMCST.h" REAL prad,pg,pr,pcpp,punjours INTEGER ngrid,nlayer REAL plat(ngrid),plon(ngrid),parea(klon),pcu(klon),pcv(klon) INTEGER pdayref INTEGER :: ibegin,iend REAL ptimestep IF (nlayer.NE.klev) THEN PRINT*,'STOP in inifis' PRINT*,'Probleme de dimensions :' PRINT*,'nlayer = ',nlayer PRINT*,'klev = ',klev STOP ENDIF IF (ngrid.NE.klon) THEN PRINT*,'STOP in inifis' PRINT*,'Probleme de dimensions :' PRINT*,'ngrid = ',ngrid PRINT*,'klon = ',klon STOP ENDIF c$OMP PARALLEL PRIVATE(ibegin,iend) c$OMP+ SHARED(parea,pcu,pcv,plon,plat) ibegin=klon_begin+klon_omp_begin(omp_rank)-1 iend=ibegin+klon_omp-1 airephy(1:klon_omp)=parea(ibegin:iend) cuphy(1:klon_omp)=pcu(ibegin:iend) cvphy(1:klon_omp)=pcv(ibegin:iend) rlond(1:klon_omp) = plon(ibegin:iend) rlatd(1:klon_omp) = plat(ibegin:iend) call suphec c$OMP END PARALLEL print*,'ATTENTION !!! TRAVAILLER SUR INIPHYSIQ' print*,'CONTROLE DES LATITUDES, LONGITUDES, PARAMETRES ...' RETURN 9999 STOP'Cette version demande les fichier rnatur.dat et surf.def' END