Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/formal/vector_1D_s.F90
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ pure function premultiply_diagonal(d,A) result(DA)

allocate(DA, mold=A)

#ifdef HAVE_DO_CONCURRENT_TYPE_SPEC_SUPPORT && HAVE_LOCALITY_SPECIFIER_SUPPORT
#if defined(HAVE_DO_CONCURRENT_TYPE_SPEC_SUPPORT) && defined(HAVE_LOCALITY_SPECIFIER_SUPPORT)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually what was likely intended is:

Suggested change
#if defined(HAVE_DO_CONCURRENT_TYPE_SPEC_SUPPORT) && defined(HAVE_LOCALITY_SPECIFIER_SUPPORT)
#if HAVE_DO_CONCURRENT_TYPE_SPEC_SUPPORT && HAVE_LOCALITY_SPECIFIER_SUPPORT

@rouson can you clarify?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am pretty sure this is the correct fix: #11.

do concurrent(integer :: row = 1 : size(A,1)) default(none) shared(d, A, DA)
DA(row,:) = d(row) * A(row,:)
end do
Expand All @@ -173,7 +173,7 @@ pure function postmultiply_diagonal(A,d) result(AD)

allocate(AD, mold=A)

#ifdef HAVE_DO_CONCURRENT_TYPE_SPEC_SUPPORT && HAVE_LOCALITY_SPECIFIER_SUPPORT
#if defined(HAVE_DO_CONCURRENT_TYPE_SPEC_SUPPORT) && defined(HAVE_LOCALITY_SPECIFIER_SUPPORT)
do concurrent(integer :: column = 1 : size(A,2)) default(none) shared(d, A, AD)
AD(:,column) = A(:,column) * d(column)
end do
Expand Down