-
Notifications
You must be signed in to change notification settings - Fork 9
/
evap_ingrp.F90
53 lines (43 loc) · 1.55 KB
/
evap_ingrp.F90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
! Include shortname defintions, so that the F77 code does not have to be modified to
! reference the CARMA structure.
#include "carma_globaer.h"
!! This routine calculates particle source terms <evappe> of droplets
!! evaporating within a particle group.
!!
!! Distinct evaporation of cores has not been treated.
!!
!! @author Andy Ackerman
!! @version Aug-2001
subroutine evap_ingrp(carma,cstate,iz,ibin,ig,ip,rc)
! types
use carma_precision_mod
use carma_enums_mod
use carma_constants_mod
use carma_types_mod
use carmastate_mod
use carma_mod
implicit none
type(carma_type), intent(in) :: carma !! the carma object
type(carmastate_type), intent(inout) :: cstate !! the carma state object
integer, intent(in) :: iz !! z index
integer, intent(in) :: ibin !! bin index
integer, intent(in) :: ig !! group index
integer, intent(in) :: ip
integer, intent(inout) :: rc !! return code, negative indicates failure
! Local declarations
integer :: ie
integer :: isub
! For a single group, the core mass fraction is 0.
cmf(ibin,ig) = 0.0_f
! The smallest bin cannot be a source to smaller bins in same group
if( ibin .eq. 1 )then
return
endif
! Evaluate evaporation source term <evappe> for all elements in group
do isub = 1, nelemg(ig)
ie = ip + isub - 1
evappe(ibin-1,ie) = evappe(ibin-1,ie) + &
pc(iz,ibin,ie)*evaplg(ibin,ig)
enddo
return
end