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