mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-26 15:13:56 +00:00
Update fortran.html.markdown
concurrent function change. the integer inside the sqrt function need to be converted to real.
This commit is contained in:
parent
a7068ea636
commit
a19e753cfa
@ -461,10 +461,10 @@ end module fruity
|
||||
! to express loop-level parallelism
|
||||
|
||||
integer :: i
|
||||
real :: array(100)
|
||||
real :: array(10)
|
||||
|
||||
DO CONCURRENT (i = 1:size(array))
|
||||
array(i) = sqrt(i**i)
|
||||
array(i) = sqrt(real(i)**i)
|
||||
END DO
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user