source: trunk/LMDZ.COMMON/libf/evolution/tracers.F90 @ 3984

Last change on this file since 3984 was 3984, checked in by jbclement, 10 days ago

PEM:
Addition of a module "tracers" to retain properties of atmospheric tracers.
JBC

File size: 898 bytes
Line 
1MODULE tracers
2
3implicit none
4
5! Indices for tracers taken from the PCM
6integer :: iPCM_qh2o
7
8! Molar masses of tracers
9type :: mmol
10    real :: h2o
11end type mmol
12
13!=======================================================================
14contains
15!=======================================================================
16
17SUBROUTINE ini_tracers_id(nqtot,noms)
18
19implicit none
20
21! Arguments
22!----------
23integer,                        intent(in) :: nqtot
24character(*), dimension(nqtot), intent(in) :: noms
25
26! Local variables
27!----------------
28integer :: i
29
30! Code
31!-----
32! Initialization
33iPCM_qh2o = -1
34
35! Getting the index
36do i = 1,nqtot
37    if (noms(nnq) == "h2o_vap") then
38        iPCM_qh2o = nnq
39        mmol%h2o = 18.
40    endif
41enddo
42
43! Checking if everything has been found
44if (iPCM_qh2o < 0) error stop 'ini_frost_id: H2O vapour index not found!'
45
46END SUBROUTINE ini_frost_id
47
48END MODULE tracers
Note: See TracBrowser for help on using the repository browser.