Scientific Programming / 2015 / Article / Lst 9

Research Article

High-Performance Design Patterns for Modern Fortran

Listing 9

function add_to_local(lhs, rhs) result(total)
  class(tensor), intent(in):: lhs
  type(local_tensor), intent(in):: rhs
  type(local_tensor):: total
  total = lhs%state() + rhs%global_f(:)
end function

We are committed to sharing findings related to COVID-19 as quickly as possible. We will be providing unlimited waivers of publication charges for accepted research articles as well as case reports and case series related to COVID-19. Review articles are excluded from this waiver policy. Sign up here as a reviewer to help fast-track new submissions.