Scientific Programming / 2015 / Article / Alg 6

Research Article

Using Coarrays to Parallelize Legacy Fortran Applications: Strategy and Case Study

Listing 6

Coarray method of gathering arrays.
integer  :: my_first[*], my_last[*]
my_first = lbound(sn, 2)
my_last = ubound(sn, 2)
do l = 1, num_images()
   cr_global(:, my_first[l]:my_last[l]) = cr(:,:)[l]
   sn_global(:, my_first[l]:my_last[l]) = sn(:,:)[l]
end do

Article of the Year Award: Outstanding research contributions of 2020, as selected by our Chief Editors. Read the winning articles.