Changeset 704 for LMDZ4/branches/V3_test/libf/phylmd/soil.F
- Timestamp:
- Aug 17, 2006, 5:41:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/V3_test/libf/phylmd/soil.F
r703 r704 4 4 SUBROUTINE soil(ptimestep, indice, knon, snow, ptsrf, ptsoil, 5 5 s pcapcal, pfluxgrd) 6 use dimphy 6 7 IMPLICIT NONE 7 8 … … 49 50 c ------------- 50 51 51 #include "dimensions.h"52 cym#include "dimensions.h" 52 53 #include "YOMCST.h" 53 #include "dimphy.h"54 cym#include "dimphy.h" 54 55 #include "dimsoil.h" 55 56 #include "indicesol.h" … … 69 70 70 71 INTEGER ig,jk 71 c $$$ REAL zdz2(nsoilmx),z1(klon)72 c@$$ REAL zdz2(nsoilmx),z1(klon) 72 73 REAL zdz2(nsoilmx),z1(klon,nbsrf) 73 REAL min_period,dalph_soil74 REAL,SAVE :: min_period,dalph_soil 74 75 REAL ztherm_i(klon) 75 76 … … 77 78 c ---------------------- 78 79 REAL dz1(nsoilmx),dz2(nsoilmx) 79 c$$$ REAL zc(klon,nsoilmx),zd(klon,nsoilmx) 80 REAL zc(klon,nsoilmx,nbsrf),zd(klon,nsoilmx,nbsrf) 80 c@$$ REAL zc(klon,nsoilmx),zd(klon,nsoilmx) 81 cym REAL zc(klon,nsoilmx,nbsrf),zd(klon,nsoilmx,nbsrf) 82 REAL,ALLOCATABLE,SAVE :: zc(:,:,:),zd(:,:,:) 83 c$OMP THREADPRIVATE(zc,zd) 81 84 REAL lambda 82 SAVE dz1,dz2,zc,zd,lambda 85 cym SAVE dz1,dz2,zc,zd,lambda 86 SAVE dz1,dz2,lambda 87 c$OMP THREADPRIVATE(dz1,dz2,lambda) 83 88 LOGICAL firstcall, firstsurf(nbsrf) 84 89 SAVE firstcall, firstsurf 90 c$OMP THREADPRIVATE(firstcall, firstsurf) 85 91 REAL isol,isno,iice 86 92 SAVE isol,isno,iice 87 93 c$OMP THREADPRIVATE(isol,isno,iice) 88 94 DATA firstcall/.true./ 89 95 DATA firstsurf/.TRUE.,.TRUE.,.TRUE.,.TRUE./ 90 96 91 97 DATA isol,isno,iice/2000.,2000.,2000./ 92 98 LOGICAL,SAVE :: First=.true. 99 c$OMP THREADPRIVATE(First) 93 100 c----------------------------------------------------------------------- 94 101 c Depthts: … … 103 110 c on corrige si on a un point de terre avec ou sans glace 104 111 c 112 IF (first) THEN 113 allocate(zc(klon,nsoilmx,nbsrf),zd(klon,nsoilmx,nbsrf)) 114 first=.false. 115 ENDIF 116 105 117 IF (indice.EQ.is_sic) THEN 106 118 DO ig = 1, knon … … 128 140 129 141 130 c $$$ IF (firstcall) THEN142 c@$$ IF (firstcall) THEN 131 143 IF (firstsurf(indice)) THEN 132 144 … … 138 150 min_period=1800. ! en secondes 139 151 dalph_soil=2. ! rapport entre les epaisseurs de 2 couches succ. 140 152 c$OMP MASTER 141 153 OPEN(99,file='soil.def',status='old',form='formatted',err=9999) 142 154 READ(99,*) min_period … … 147 159 CLOSE(99) 148 160 9999 CONTINUE 161 c$OMP END MASTER 162 c$OMP BARRIER 149 163 150 164 c la premiere couche represente un dixieme de cycle diurne … … 172 186 C PB 173 187 firstsurf(indice) = .FALSE. 174 c $$$ firstcall =.false.188 c@$$ firstcall =.false. 175 189 176 190 c Initialisations: … … 202 216 c --------------------------------------------------------------- 203 217 204 c $$$ PB ajout pour cas glace de mer218 c@$$ PB ajout pour cas glace de mer 205 219 IF (indice .EQ. is_sic) THEN 206 220 DO ig = 1 , knon
Note: See TracChangeset
for help on using the changeset viewer.