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...
Hallo All,
I am using Lapack libraries to diagonalize
a matrix (complex, non-symmetric).
After calling the lapack subroutine I try to deallocate the
memory of the arrays used but there is a problem.
Notice that If I do not deallocate the arrays everything
works fine (I use gfortran as a...
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)...
Hallo all,
I spent a lot of time trying to install the g95 as suggested with no success... (problems with the linking?)
so I start reporting you the structure of my code which might be helpful.
The segmentation occurs when I call a subroutine called GCR which is in a module called bogo (however...
Hi all,
indeed my code has allocatable arrays and optional variables, however the "funny" thing is that it compiles and works perfectly with gfortran (even with -fbounds-check).
I have no debugger...(I don't know of any free ones, do you have any suggestion?).
I am almost sure it used to work...
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,
I post here a short version of the code so to understand
If I interfaced correctly the subroutines.
I included the problematic lines from the input.
If I do not read these lines the code gives the correct
values. If I read them it is wrong.
There is a little change respect to my...
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...
Hallo!
I am programming using fortran 90 (gfortran as a compiler).
I have to 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...
Hallo everybody,
I am using a code (compiled with gfortran)
which uses the selected_real_kind statement, however
since I had problems I tried to implement a very basic code like:
!-----------------------------------------------
program real_kinds
implicit none...
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...
Dear all,
I would like to interface a Lapack subroutine with my code.
There is a point I don't understand.
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...
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.