Skip to content

Commit

Permalink
Update CCPr_DryDep_Mod.F90
Browse files Browse the repository at this point in the history
Adding drydep freq to DryDepState type as allocatable array
  • Loading branch information
lholland-noaa authored Oct 1, 2024
1 parent 006b94a commit 1dcaa4b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/process/drydep/CCPr_DryDep_Mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ MODULE CCPR_DryDep_mod
INTEGER :: SchemeOpt ! Scheme Option (if there is only one SchemeOpt always = 1)
real :: particleradius
real :: particledensity
real :: drydep_frequency ! could have one per chem species, revisit later
real :: drydep_vel ! could have one per chem species, revisit later
real, allocatable :: drydep_frequency(:) ! could have one per chem species, revisit later
real, allocatable :: drydep_vel(:) ! could have one per chem species, revisit later


END TYPE DryDepStateType
Expand Down Expand Up @@ -112,8 +112,10 @@ SUBROUTINE CCPR_DryDep_Init( Config, DryDepState, ChemState, RC )
! Activate Process
!------------------
DryDepState%Activate = .true.
DryDepState%drydep_frequency = 0
DryDepState%drydep_vel = 0
allocate(DryDepState%drydep_frequency(ChemState%nSpeciesAeroDryDep))
DryDepState%drydep_frequency(1:ChemState%nSpeciesAeroDryDep)=0
allocate(DryDepState%drydep_vel(ChemState%nSpeciesAeroDryDep))
DryDepState%drydep_vel(1:ChemState%nSpeciesAeroDryDep)=0

! Set scheme option
!------------------
Expand Down

0 comments on commit 1dcaa4b

Please sign in to comment.