I have an odd question, the following code:
tmpu(i)=dreal(out(i+1))/real(mz)
enddo
! write(,)out(6),dreal(out(6))
! write(,)in(5),out(6) line 124
write(,)out(6) line 125
tmpu(0)=tmpu(0)/2.0
tmpu(mz)=tmpu(mz)/2.0
this code gives out fault result, NAN, but if I comment line 125 and uncomment line 124, the result is correct, isn’t it weird??
Can anyone help me and tell me why?
thansk!!!