-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rxns with layers #7
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great! just a few suggestions
src/aero_rep_data.F90
Outdated
|
||
!> List of phase ids | ||
integer(kind=i_kind), allocatable :: phase_ids(:) | ||
!> Aerosol representation data | ||
class(aero_rep_data_t), intent(in) :: this | ||
!> Aerosol phase name | ||
character(len=*), intent(in) :: phase_name | ||
!> Indicates if aerosol phase is at the surface of particle | ||
logical, intent(in), optional :: is_at_surface | ||
logical, allocatable :: aero_is_at_surf(:) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed?
src/aero_rep_data.F90
Outdated
end if | ||
end do | ||
if (.not. is_at_surface) then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could just be else
src/aero_rep_data.F90
Outdated
if (this%aero_phase(i_phase)%val%name().eq. phase_name .and. & | ||
aero_is_at_surf(i_phase) .eqv. .true.) then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (this%aero_phase(i_phase)%val%name().eq. phase_name .and. & | |
aero_is_at_surf(i_phase) .eqv. .true.) then | |
if (this%aero_phase(i_phase)%val%name().eq. phase_name .and. & | |
aero_is_at_surf(i_phase)) then |
src/aero_rep_data.F90
Outdated
if (this%aero_phase(i_phase)%val%name().eq. phase_name .and. & | ||
aero_is_at_surf(i_phase) .eqv. .false.) then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (this%aero_phase(i_phase)%val%name().eq. phase_name .and. & | |
aero_is_at_surf(i_phase) .eqv. .false.) then | |
if (this%aero_phase(i_phase)%val%name().eq. phase_name .and. & | |
.not. aero_is_at_surf(i_phase)) then |
@@ -374,6 +373,7 @@ subroutine initialize(this, chem_spec_data, aero_rep, n_cells) | |||
|
|||
! Save the index of the gas-phase species in the state variable array | |||
GAS_SPEC_ = chem_spec_data%gas_state_id(gas_spec_name) | |||
print *, GAS_SPEC_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove debug code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While it makes it a longer variable name, I think you should at least consider changing aero_is_at_surface
to aero_phase_is_at_surface
to more clearly denote what this is and be more consistent with the related variable aero_phase
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great!
Added is_at_surface flag to indicate if phase exists in the surface layer of particle