Skip to content
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

Fix setting aero_particle%least_create_time #197

Merged
merged 1 commit into from
Apr 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/aero_particle.F90
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ subroutine aero_particle_set_create_time(aero_particle, create_time)
real(kind=dp), intent(in) :: create_time

aero_particle%component(1)%create_time = create_time
aero_particle%least_create_time = create_time
aero_particle%greatest_create_time = create_time

end subroutine aero_particle_set_create_time
Expand Down Expand Up @@ -970,6 +971,9 @@ subroutine aero_particle_coagulate(aero_particle_1, &
aero_particle_2%component]
call move_alloc(new_aero_component, aero_particle_new%component)
end if
aero_particle_new%least_create_time = &
min(aero_particle_1%least_create_time, &
aero_particle_2%least_create_time)
aero_particle_new%greatest_create_time = &
max(aero_particle_1%greatest_create_time, &
aero_particle_2%greatest_create_time)
Expand Down