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...
Dear all,
I have been wasting some time to understand an error
which was rather trivial, I forgot to initialize
an index in a subroutine. As a result, no compiler gave me
any error but when executed the code gave me
different results for different compilers/computers.
My question is thus: is...
Dear François,
I was expecting this problem to be related to
the array size, however as you can see in the code,
I have been using 10 x 10 arrays...
However I found the error.
I was passing
complex (kind = 4)
instead of
complex (kind = 8)
arrays to the subroutine
It is actually not clear...
...lines of the error and the code, which
is very simple since it is just a test to understand the
problem.
Thank you very much,
cheers,
Paolo
*** glibc detected *** ./test1.x: free(): invalid next size (fast): 0x00000000014119c0 ***
======= Backtrace: =========...
hallo all,
I have been given a code to modify (old fortran 77 in fixed format)
so I changed it introducing modules (instead of "common" type sintax).
There is a compilation problem of this kind:
This name does not have a type, and must have an explicit type. [XMELE]
XMELE=0.
Since...
Hi Frnçois,
I have checked on the remote pc where the code works without
any segmentation fault, summing up:
Cluster, ifort (IFORT) 9.1 20071016 , code working
PC , ifort (IFORT) 12.0.4 20110427 , segmentation fault
PC , gfortran GNU Fortran 95 (GCC) 4.1.0 20060515 (Red Hat 4.1.0-18)...
...(iLong,0:Niter+1) :: P, AP
complex ( kind = pr ) , dimension (0:Niter, 0:Niter) :: betGCR!
integer :: ien, iter
...
en module bogo
***********************************************
Another funny behaviour is the following:
I tried to compile with ifort again and I received many errors...
...fault happens just after(during) the declaration of the variables, so that in the subroutine nothing can be done. I inserted a
write(*,*) 'here'
after declaring the variables but nothing is written.
The same variable declaration is present also in another subroutine, which works with no...
Hallo All,
I have a f90 code, if I compile it with gfortran it works, however if I compile it with ifort a segmentation fault occurs.
I use to check for errors in memory allocation with gfortran via the option -fbounds-check and I have been told that the equivalent option for ifort is -C...
hallo all,
I have written a fortran code and compiled it with gfortran.
I run it and I keep using the computer for other purposes, however
from time to time the computer (fedora 14 core2 duo with a 1Gb) becomes very slow. I was thinking that maybe the memory usage might exceed the available...
Hallo all,
I solved the problem, however I still
cannot understand it.
In the case I delete the commentaries in the
inpunt file(I posted previously), everything works fine
(notice that the values of the parameters
of the input file were read correctly even
before).
Does anybody have an idea...
hallo all,
My code at first reads a input file.
It seemed that the last two parameters of the first row of the
input file had some problem.
I changed the code not to read these two parameters.
The numerical results from the code depend on how
I delete these two parameters from the input...
Hallo François,
Actually I didn't check the forum during the w/e (also because
I was not so much positive about real improvements).
I have to admit you opened my mind with your suggestions.
I had been reading that transposing the vectors could
increase the speed of the calculation however I...
...sum a lot of functions like this:
do ix=1,100
do iy =1,100
do n=1,10000
do k=1,10000
d(ix,iy) = d(ix,iy) + coeff(n,k) * f(n,ix) *g(k,iy)
enddo
enddo
enddo
enddo
I was trying to render this procedure more efficient from the
time point of...
Thank you all for your answers.
I tried to use "convert.f90" but at some point there
was a error message:
>At line 953 of file convert.f90
>Fortran runtime error: Bad value during integer read
I figured out that the problem is in the fortran file to be converted.
If I open it with gvim...
Thank you fot the hint;
however it doesn't work since I
have to interface a fixed format part of
a code (the Lapack subroutine for example) with a
free form one (my code).
I have been checking some converter like
the convert.f90 ; but so far I didn't succeed in
converting the form.
Do you...
...As far as I know in principle a f90
compiler should compile all the f77 codes,
however I have a problem with commented sentences.
When there is a * at the beginning of a line it is considered as commented if the extension of the file is .f,
(for example gvim turns it blue to show it is a...
Dear All,
I am working on a F90 code I didn't write.
I would like to execute the code itself two times
(with different parameters) and I wrote a "do" loop at the beginning of the code.
Before the loop ends all the allocated arrays should be deallocated.
Unfortunately at the beginning of the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.