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

Contents of /trunk/dyn3d/vitvert.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations)
Thu Jun 13 14:40:06 2019 UTC (4 years, 11 months ago) by guez
File size: 888 byte(s)
Change all `.f` suffixes to `.f90`. (The opposite was done in revision
82.)  Because of change of philosopy in GNUmakefile: we already had a
rewritten rule for `.f`, so it does not make the makefile longer to
replace it by a rule for `.f90`. And it spares us options of
makedepf90 and of the compiler. Also we prepare the way for a simpler
`CMakeLists.txt`.

1 module vitvert_m
2
3 IMPLICIT NONE
4
5 contains
6
7 pure function vitvert(convm)
8
9 ! From libf/dyn3d/vitvert.F, version 1.1.1.1, 2004/05/19 12:53:05
10 ! Authors: P. Le Van, F. Hourdin
11
12 ! Purpose: Compute vertical speed at sigma levels.
13
14 ! 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 USE dimensions, ONLY : llm
19 USE disvert_m, ONLY : bp
20
21 real, intent(in):: convm(:, :, :) ! (iim + 1, jjm + 1, llm)
22 REAL vitvert(size(convm, 1), size(convm, 2), size(convm, 3))
23
24 ! Local:
25 INTEGER l
26
27 !------------------------------------------------------
28
29 forall (l = 2: llm) &
30 vitvert(:, :, l) = convm(:, :, l) - bp(l) * convm(:, :, 1)
31 vitvert(:, :, 1) = 0.
32
33 END function vitvert
34
35 end module vitvert_m

  ViewVC Help
Powered by ViewVC 1.1.21