I'm trying to run a Fortran code that follows the example for the book:
Curcic, M. 2020. Modern Fortran: Building Efficient Parallel Applications.
Although I get the following error when I run it and I'm not experienced enough to understand what the problem is, could someone kindly help me?
program hello
implicit none
integer :: a[*] ! error here
integer :: i
a = this_image()
if (this_image() == 1) then
do i = 1, num_images()
print *, 'Value on image', i, 'is', a[i]
end do
end if
end program
Error: Coarrays disabled at (1), use '-fcoarray=' to enable|