mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 10:01:38 +00:00
Update fortran90.html.markdown
Requested change done
This commit is contained in:
parent
8c78bb13d9
commit
1f71450a4c
@ -437,7 +437,8 @@ contains
|
|||||||
end module fruity
|
end module fruity
|
||||||
|
|
||||||
|
|
||||||
! ISO Standard Fortran 2008 introduced the DO CONCURRENT construct to allow you to express loop-level parallelism
|
! ISO Standard Fortran 2008 introduced the DO CONCURRENT construct to allow you
|
||||||
|
! to express loop-level parallelis
|
||||||
|
|
||||||
integer :: i
|
integer :: i
|
||||||
real :: array(100)
|
real :: array(100)
|
||||||
@ -447,7 +448,8 @@ DO CONCURRENT (i = 1:size(array))
|
|||||||
END DO
|
END DO
|
||||||
|
|
||||||
|
|
||||||
! Only calls to pure functions are allowed inside the loop and we can declare multiple indices:
|
! Only calls to pure functions are allowed inside the loop and we can declare
|
||||||
|
! multiple indices:
|
||||||
|
|
||||||
integer :: x, y
|
integer :: x, y
|
||||||
real :: array(8, 16)
|
real :: array(8, 16)
|
||||||
|
Loading…
Reference in New Issue
Block a user