Skip to content

Commit

Permalink
Removed OpenMP directives from crater_soften_accumulate because array…
Browse files Browse the repository at this point in the history
… reduction was causing problems
  • Loading branch information
daminton committed Feb 23, 2017
1 parent 0853771 commit c382d3b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/crater/crater_soften_accumulate.f90
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ subroutine crater_soften_accumulate(user,surf,crater,domain,kdiff)
incsq = inc**2

! Loop over affected matrix area
!$OMP PARALLEL DO DEFAULT(PRIVATE) IF(inc > INCPAR) &
!$OMP SHARED(user,crater,fradsq,inc,incsq,kappatmax,SOFTEN_SIZE) &
!$OMP REDUCTION(+:kdiff)
!!$OMP PARALLEL DO DEFAULT(PRIVATE) IF(inc > INCPAR) &
!!$OMP SHARED(user,crater,fradsq,inc,incsq,kappatmax,SOFTEN_SIZE) &
!!$OMP REDUCTION(+:kdiff)
do j = -inc,inc ! Do the loop in pixel space
do i = -inc,inc
! find distance from crater center
Expand Down Expand Up @@ -86,7 +86,7 @@ subroutine crater_soften_accumulate(user,surf,crater,domain,kdiff)

end do
end do !end area loopover
!$OMP END PARALLEL DO
!!$OMP END PARALLEL DO

return
end subroutine crater_soften_accumulate
Expand Down

0 comments on commit c382d3b

Please sign in to comment.