container_reduction Subroutine

subroutine container_reduction(this, rhs)

Arguments

Type IntentOptional Attributes Name
class(container_layer_type), intent(inout) :: this
class(container_layer_type), intent(in) :: rhs

Source Code

  subroutine container_reduction(this, rhs)
    implicit none
    class(container_layer_type), intent(inout) :: this
    class(container_layer_type), intent(in) :: rhs

    select type(layer_this => this%layer)
    class is(learnable_layer_type)
       select type(layer_rhs => rhs%layer)
       class is(learnable_layer_type)
          call layer_this%reduce(layer_rhs)
       end select
    end select

  end subroutine container_reduction