Skip to content

Commit

Permalink
use link-based coupling for aggregate variable contributions
Browse files Browse the repository at this point in the history
  • Loading branch information
jornbr committed Jan 26, 2024
1 parent e5efa0c commit 994361a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fabm_coupling.F90
Original file line number Diff line number Diff line change
Expand Up @@ -599,10 +599,10 @@ recursive subroutine create_aggregate_models(self)
.and. (index(contributing_variable%link%name, '/') == 0 .or. .not. associated(self%parent))) then ! Variable must be owned by the model itself unless we are aggregating at root level
select case (contributing_variable%link%target%domain)
case (domain_interior)
call sum%add_component(trim(contributing_variable%link%name), &
call sum%add_component(trim(contributing_variable%link%name), link=contributing_variable%link, &
weight=contributing_variable%scale_factor, include_background=contributing_variable%include_background)
case (domain_bottom, domain_surface, domain_horizontal)
call horizontal_sum%add_component(trim(contributing_variable%link%name), &
call horizontal_sum%add_component(trim(contributing_variable%link%name), link=contributing_variable%link, &
weight=contributing_variable%scale_factor, include_background=contributing_variable%include_background)
end select
end if
Expand Down

0 comments on commit 994361a

Please sign in to comment.