8 real, allocatable :: b(:), c(:)
11 real, allocatable :: a(:,:), b(:), c(:)
12 integer :: dim1, dim2, i,j
15 allocate(a(dim1,dim2),b(dim1),c(dim1))
18 !$omp parallel workshare
19 b(:) = maxval(a(:,:), dim=2)
20 c(:) = sum(a(:,:), dim=2)
21 !$omp end parallel workshare