Changeset 2135 for trunk/LMDZ.COMMON/libf/dyn3d_common/cpdet_mod.F90
- Timestamp:
- May 3, 2019, 1:10:27 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/dyn3d_common/cpdet_mod.F90
r1659 r2135 21 21 SUBROUTINE ini_cpdet 22 22 23 USE control_mod, ONLY: planet_type23 USE control_mod, ONLY: cpofT 24 24 USE comconst_mod, ONLY: nu_venus,t0_venus 25 25 IMPLICIT none … … 28 28 !====================================================================== 29 29 30 if ( planet_type.eq."venus") then30 if (cpofT) then 31 31 nu_venus=0.35 32 32 t0_venus=460. … … 44 44 FUNCTION cpdet(t) 45 45 46 USE control_mod, ONLY: planet_type46 USE control_mod, ONLY: cpofT 47 47 USE comconst_mod, ONLY: cpp,t0_venus,nu_venus 48 48 IMPLICIT none … … 53 53 real cpdet 54 54 55 if ( planet_type.eq."venus") then55 if (cpofT) then 56 56 cpdet = cpp*(t/t0_venus)**nu_venus 57 57 else … … 75 75 !====================================================================== 76 76 77 USE control_mod, ONLY: planet_type77 USE control_mod, ONLY: cpofT 78 78 USE comconst_mod, ONLY: cpp,t0_venus,nu_venus 79 79 … … 107 107 !---------------------- 108 108 109 if ( planet_type.eq."venus") then109 if (cpofT) then 110 110 yteta = yt**nu_venus & 111 111 & - nu_venus * t0_venus**nu_venus * log(ypk/cpp) … … 136 136 !====================================================================== 137 137 138 USE control_mod, ONLY: planet_type138 USE control_mod, ONLY: cpofT 139 139 USE comconst_mod, ONLY: cpp,nu_venus,t0_venus 140 140 … … 168 168 !---------------------- 169 169 170 if ( planet_type.eq."venus") then170 if (cpofT) then 171 171 172 172 !---------------------- … … 193 193 SUBROUTINE t2tpot_p(nlon,nlev, yt, yteta, ypk) 194 194 ! Parallel version of t2tpot, for an arbitrary number of columns 195 USE control_mod, only : planet_type195 USE control_mod, only : cpofT 196 196 USE parallel_lmdz, only : OMP_CHUNK 197 197 USE comconst_mod, ONLY: cpp,nu_venus,t0_venus … … 231 231 !---------------------- 232 232 233 if ( planet_type.eq."venus") then233 if (cpofT) then 234 234 !$OMP DO SCHEDULE(STATIC,OMP_CHUNK) 235 235 do l=1,nlev … … 250 250 enddo 251 251 !$OMP END DO 252 endif ! of if ( planet_type.eq."venus")252 endif ! of if (cpofT) 253 253 254 254 end subroutine t2tpot_p … … 261 261 ! (more efficient than multiple calls to t2tpot_p() with slices of data) 262 262 USE parallel_lmdz, only : jj_begin,jj_end,OMP_CHUNK 263 USE control_mod, only : planet_type263 USE control_mod, only : cpofT 264 264 USE comconst_mod, ONLY: cpp,nu_venus,t0_venus 265 265 … … 306 306 jje=jj_end 307 307 308 if ( planet_type.eq."venus") then308 if (cpofT) then 309 309 !$OMP DO SCHEDULE(STATIC,OMP_CHUNK) 310 310 do l=1,llm … … 325 325 enddo 326 326 !$OMP END DO 327 endif ! of if ( planet_type.eq."venus")327 endif ! of if (cpofT) 328 328 329 329 end subroutine t2tpot_glo_p … … 334 334 SUBROUTINE tpot2t_p(nlon,nlev,yteta,yt,ypk) 335 335 ! Parallel version of tpot2t, for an arbitrary number of columns 336 USE control_mod, only : planet_type336 USE control_mod, only : cpofT 337 337 USE parallel_lmdz, only : OMP_CHUNK 338 338 USE comconst_mod, ONLY: cpp,nu_venus,t0_venus … … 373 373 !---------------------- 374 374 375 if ( planet_type.eq."venus") then375 if (cpofT) then 376 376 !$OMP DO SCHEDULE(STATIC,OMP_CHUNK) 377 377 do l=1,nlev … … 391 391 enddo 392 392 !$OMP END DO 393 endif ! of if ( planet_type.eq."venus")393 endif ! of if (cpofT) 394 394 end subroutine tpot2t_p 395 395 … … 401 401 ! (more efficient than multiple calls to tpot2t_p() with slices of data) 402 402 USE parallel_lmdz, only : jj_begin,jj_end,OMP_CHUNK 403 USE control_mod, only : planet_type403 USE control_mod, only : cpofT 404 404 USE comconst_mod, ONLY: cpp,nu_venus,t0_venus 405 405 … … 446 446 jje=jj_end 447 447 448 if ( planet_type.eq."venus") then448 if (cpofT) then 449 449 !$OMP DO SCHEDULE(STATIC,OMP_CHUNK) 450 450 do l=1,llm … … 465 465 enddo 466 466 !$OMP END DO 467 endif ! of if ( planet_type.eq."venus")467 endif ! of if (cpofT) 468 468 end subroutine tpot2t_glo_p 469 469
Note: See TracChangeset
for help on using the changeset viewer.