/[lmdze]/trunk/dyn3d/vitvert.f90
ViewVC logotype

Annotation of /trunk/dyn3d/vitvert.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 339 - (hide annotations)
Thu Sep 26 17:08:42 2019 UTC (4 years, 8 months ago) by guez
File size: 886 byte(s)
Simplify newmicro and rename dummy arguments

Rename dummy argument ucov of procedure advect to ang_3d. Rename dummy
argument radliq of procedure fisrtilp to cldliq. Rename dummy argument
qlwp of procedure newmicro to cldliq. Motivation: same name across
procedures.

Remove useless intermediary local variable rel in procedure
newmicro. The value of rad_chaud can be used instead of 1 in the
computation of cldtau if zflwp is 0: it does not matter.

1 guez 91 module vitvert_m
2 guez 3
3 guez 91 IMPLICIT NONE
4 guez 3
5 guez 91 contains
6 guez 3
7 guez 252 pure function vitvert(convm)
8 guez 3
9 guez 91 ! From libf/dyn3d/vitvert.F, version 1.1.1.1, 2004/05/19 12:53:05
10     ! Authors: P. Le Van, F. Hourdin
11 guez 3
12 guez 339 ! Purpose: compute vertical speed at sigma levels.
13 guez 3
14 guez 252 ! Vertical speed is oriented from bottom to top. At ground-level
15     ! sigma(1): vitvert(i, j, 1) = 0. At top-level sigma(llm + 1), vertical
16     ! speed is 0 too and is not stored in vitvert.
17    
18 guez 339 USE dimensions, ONLY: llm
19     USE disvert_m, ONLY: bp
20 guez 3
21 guez 252 real, intent(in):: convm(:, :, :) ! (iim + 1, jjm + 1, llm)
22     REAL vitvert(size(convm, 1), size(convm, 2), size(convm, 3))
23 guez 3
24 guez 91 ! Local:
25     INTEGER l
26 guez 3
27 guez 91 !------------------------------------------------------
28    
29 guez 252 forall (l = 2: llm) &
30     vitvert(:, :, l) = convm(:, :, l) - bp(l) * convm(:, :, 1)
31     vitvert(:, :, 1) = 0.
32 guez 91
33 guez 252 END function vitvert
34 guez 91
35     end module vitvert_m

  ViewVC Help
Powered by ViewVC 1.1.21