The following declarations are provoking the error as shown in the post subject.
REAL :: sum2,sum3,skewn
INTEGER :: n
DOUBLE PRECISION, DIMENSION(n) :: nvdata
DOUBLE PRECISION :: avg
DO i = 1, n
sum3 = sum3+(nvdata(i)-avg)**3
skewn = (sum3/REAL(n))/((sum2/REAL(n))**(3/2))
END DO
My assumption is if data type of 'n' could be converted to 'DOUBLE PRECISION(n)' instead of 'REAL(n)', it could be solved. Any comment/suggestion would be highly appreciated.
Thanks!