Hello,
Thank you for your reply. I was trying to write in a pseudocode. The ** takes power of each element of a matrix.
I uploaded the whole code, but here is the relevant part of the code.
open(unit=1,file='hex.in',status='old')
do j=1,ly
do i=1,lx
read(1,*) psi(i,j)
enddo
enddo...