You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
p210_flat is declared contiguous, fptr is not. I haven't seen any other compilers complaining about this.
It seems to me it would be safe to declare also fptr as contiguous, because it comes from
which should be a contiguous array. @jiskattema what do you think?
I tested making fptr contiguous, and at least it compiles then.
The compiler output:
/home/fjansson/dales/src/modfftw.f90:165:34:
p210_flat(1:itot*jmax*konx)=> fptr(1:itot*jmax*konx)
1
Error: Assignment to contiguous pointer from non-contiguous target at (1)
/home/fjansson/dales/src/modfftw.f90:167:34:
p201_flat(1:itot*konx*iony)=> fptr(1:itot*konx*iony)
1
Error: Assignment to contiguous pointer from non-contiguous target at (1)
/home/fjansson/dales/src/modfftw.f90:178:6:
p210_flat, & ! array; location of transform k is: in + k * idist
1
The text was updated successfully, but these errors were encountered:
gfortran 8.5.0 reports an error
Assignment to contiguous pointer from non-contiguous target
in modfftw.f90,dales/src/modfftw.f90
Line 165 in 1d63af5
p210_flat
is declared contiguous,fptr
is not. I haven't seen any other compilers complaining about this.It seems to me it would be safe to declare also fptr as contiguous, because it comes from
which should be a contiguous array. @jiskattema what do you think?
I tested making fptr contiguous, and at least it compiles then.
The compiler output:
The text was updated successfully, but these errors were encountered: