Changeset 1709 for trunk/LMDZ.GENERIC/libf
- Timestamp:
- May 16, 2017, 9:57:31 AM (8 years ago)
- Location:
- trunk/LMDZ.GENERIC/libf/phystd
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/callcorrk.F90
r1699 r1709 20 20 USE tracer_h 21 21 use comcstfi_mod, only: pi, mugaz, cpp 22 use callkeys_mod, only: varactive,diurnal,tracer,water, nosurf,varfixed,satval, &22 use callkeys_mod, only: varactive,diurnal,tracer,water,varfixed,satval, & 23 23 kastprof,strictboundcorrk,specOLR,CLFvarying 24 24 … … 494 494 albv(nw)=albedo(ig,nw) 495 495 ENDDO 496 497 if (nosurf) then ! Case with no surface.498 DO nw=1,L_NSPECTV499 if(albv(nw).gt.0.0) then500 print*,'For open lower boundary in callcorrk must'501 print*,'have spectral surface band albedos all set to zero!'502 call abort503 endif504 ENDDO505 endif506 496 507 497 if ((ngrid.eq.1).and.(global1d)) then ! Fixed zenith angle 'szangle' in 1D simulations w/ globally-averaged sunlight. -
trunk/LMDZ.GENERIC/libf/phystd/callkeys_mod.F90
r1677 r1709 107 107 real,save :: MassPlanet 108 108 !$OMP THREADPRIVATE(flatten,Rmean,J2,MassPlanet) 109 real,save :: surfalbedo 110 real,save :: surfemis 111 !$OMP THREADPRIVATE(surfalbedo,surfemis) 109 112 110 113 logical,save :: iscallphys=.false.!existence of callphys.def -
trunk/LMDZ.GENERIC/libf/phystd/phyetat0_mod.F90
r1669 r1709 10 10 emis,q2,qsurf,cloudfrac,totcloudfrac,hice, & 11 11 rnat,pctsrf_sic,tslab,tsea_ice,sea_ice) 12 13 ! to use 'getin_p' 14 use ioipsl_getin_p_mod, only: getin_p 12 15 13 16 use tabfi_mod, only: tabfi … … 18 21 inquire_dimension, inquire_dimension_length 19 22 use slab_ice_h, only: noceanmx 20 use callkeys_mod, only: CLFvarying 23 use callkeys_mod, only: CLFvarying,surfalbedo,surfemis 21 24 22 25 implicit none … … 115 118 endif 116 119 else 117 phisfi(:)=0 120 phisfi(:)=0. 118 121 endif ! of if (startphy_file) 119 122 write(*,*) "phyetat0: surface geopotential <phisfi> range:", & … … 127 130 endif 128 131 else 129 albedodat(:)=0.5 ! would be better to read value from def file... 132 ! If no startfi file, use parameter surfalbedo in def file 133 surfalbedo=0.5 134 call getin_p("surfalbedo",surfalbedo) 135 print*,"surfalbedo",surfalbedo 136 albedodat(:)=surfalbedo 130 137 endif ! of if (startphy_file) 131 138 write(*,*) "phyetat0: Bare ground albedo <albedodat> range:", & … … 139 146 endif 140 147 else 141 zmea(:)=0 148 zmea(:)=0. 142 149 endif ! of if (startphy_file) 143 150 write(*,*) "phyetat0: <ZMEA> range:", & … … 151 158 endif 152 159 else 153 zstd(:)=0 160 zstd(:)=0. 154 161 endif ! of if (startphy_file) 155 162 write(*,*) "phyetat0: <ZSTD> range:", & … … 163 170 endif 164 171 else 165 zsig(:)=0 172 zsig(:)=0. 166 173 endif ! of if (startphy_file) 167 174 write(*,*) "phyetat0: <ZSIG> range:", & … … 175 182 endif 176 183 else 177 zgam(:)=0 184 zgam(:)=0. 178 185 endif ! of if (startphy_file) 179 186 write(*,*) "phyetat0: <ZGAM> range:", & … … 187 194 endif 188 195 else 189 zthe(:)=0 196 zthe(:)=0. 190 197 endif ! of if (startphy_file) 191 198 write(*,*) "phyetat0: <ZTHE> range:", & … … 199 206 endif 200 207 else 201 tsurf(:)=0 ! will be updated afterwards in physiq !208 tsurf(:)=0. ! will be updated afterwards in physiq ! 202 209 endif ! of if (startphy_file) 203 210 write(*,*) "phyetat0: Surface temperature <tsurf> range:", & … … 211 218 endif 212 219 else 213 emis(:)=1 ! would be better to read value from def file... 220 ! If no startfi file, use parameter surfemis in def file 221 surfemis=1.0 222 call getin_p("surfemis",surfemis) 223 print*,"surfemis",surfemis 224 emis(:)=surfemis 214 225 endif ! of if (startphy_file) 215 226 write(*,*) "phyetat0: Surface emissivity <emis> range:", & … … 224 235 endif 225 236 else 226 cloudfrac(:,:)=0 237 cloudfrac(:,:)=0.0 227 238 endif ! of if (startphy_file) 228 239 write(*,*) "phyetat0: Cloud fraction <cloudfrac> range:", & … … 240 251 endif 241 252 else 242 totcloudfrac(:)=0 253 totcloudfrac(:)=0.0 243 254 endif ! of if (startphy_file) 244 255 write(*,*) "phyetat0: Total cloud fraction <totcloudfrac> range:", & … … 254 265 write(*,*) "phyetat0: Failed loading <hice>" 255 266 ! call abort 256 hice(:)=0 257 endif 258 else 259 hice(:)=0 267 hice(:)=0. 268 endif 269 else 270 hice(:)=0. 260 271 endif ! of if (startphy_file) 261 272 write(*,*) "phyetat0: Height of oceanic ice <hice> range:", & … … 279 290 endif ! of if (.not.found) 280 291 else 281 rnat(:)=1 292 rnat(:)=1. 282 293 endif ! of if (startphy_file) 283 294 write(*,*) "phyetat0: Nature of surface <rnat> range:", & … … 292 303 endif 293 304 else 294 pctsrf_sic(:)=0 305 pctsrf_sic(:)=0. 295 306 endif ! of if (startphy_file) 296 307 write(*,*) "phyetat0: Pourcentage of sea ice cover <pctsrf_sic> range:", & … … 335 346 endif 336 347 else 337 tsea_ice(1:ngrid)=0 348 tsea_ice(1:ngrid)=0. 338 349 endif ! of if (startphy_file) 339 350 write(*,*) "phyetat0: Oceanic ice quantity <sea_ice> range:", & … … 348 359 endif 349 360 else 350 q2(:,:)=0 361 q2(:,:)=0. 351 362 endif ! of if (startphy_file) 352 363 write(*,*) "phyetat0: PBL wind variance <q2> range:", & … … 365 376 endif 366 377 else 367 qsurf(:,iq)=0 378 qsurf(:,iq)=0. 368 379 endif ! of if (startphy_file) 369 380 write(*,*) "phyetat0: Surface tracer <",trim(txt),"> range:", &
Note: See TracChangeset
for help on using the changeset viewer.