Hallo all,
I just want to tell you about a problem I had with ifort
(probably most of you know about this problem but it took
me a lot of time to solve it).
The code worked fine with gfortran and with old versions of ifort.
I had no clue of what was happening.
In the code there is a subroutine,
and in the subroutine I declare some array e.g.:
If I write something like (being "ndim" a "big"
parameter taken from elsewere in the code):
real (kind = 8), dimension(ndim) :: vett
some recent version of ifort compile but return a segmentation fault when
the code is run,
while something like:
real (kind = 8), dimension), allocatable :: vett
allocate (vett(ndim))
works correctly!
(I found the solution here : )
That's all folks,
sorry if you already knew it,
cheers,
Paolo
I just want to tell you about a problem I had with ifort
(probably most of you know about this problem but it took
me a lot of time to solve it).
The code worked fine with gfortran and with old versions of ifort.
I had no clue of what was happening.
In the code there is a subroutine,
and in the subroutine I declare some array e.g.:
If I write something like (being "ndim" a "big"
parameter taken from elsewere in the code):
real (kind = 8), dimension(ndim) :: vett
some recent version of ifort compile but return a segmentation fault when
the code is run,
while something like:
real (kind = 8), dimension), allocatable :: vett
allocate (vett(ndim))
works correctly!
(I found the solution here : )
That's all folks,
sorry if you already knew it,
cheers,
Paolo