Fortran extensions can be useful, but they can also lead to confusing errors when some features are used by accident. For example, the bitwise logical operators and automatic integer/logical coercion can be problematic.
my code works ok with ifort 9.0.021.
I've just installed 9.0.031 and it no more works.
I've found what was going wrong, which can be illustrated with this little example :
real*8, allocatable :: d(:,:)
end type t
type(t) :: tab(2)
type(t), intent(out) :: tab(:)
end subroutine alloc
end program test
I am getting a segmentation fault error using seven (7) large arrays declared as COMMON variables (see =CASE 1= below); No segmentation fault occurs if I comment out the COMMON declaration line in the same program (See =CASE 2= below); And even more interesting, if I change the code such that I use only one array declared as COMMON variable, even if I set the dimensions of this array so it is larger that the sum of all the seven arrays in my previous case, it does not give a segmentation fault!! (see =CASE 3= below).
I have some trouble with Intels Fortran-Compiler
ifort Version 9.0 on our Linux/Itanium platform.
Below you will find a short test program and a
test data file to demonstrate the problem.
do i = 1, 1
nComp = 0
if(nComp == 4) exit
nComp = nComp + 1
write(*,*) 'before do', nComp
do j = 1, nComp
write(*,*) ' after do', nComp
I installed the compiler using all the default settings and I am able to compile without getting any kind of warning, but when I try to lunch the compiled program I got the following:
./XMAIN.o: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
the command used to compile should be the rigth one (ifort XEMAIN.f90 -o XEMIN.o) where , of course, XEMAIN.f90 is the source.
I am having some problems using the -ipo flag for the compilation of ACESII, a quantum chemistry package.
The program compiles, links, and runs quite readily using the following compiler flags:
Is it possible to compile file with .f95 extension ? According to the manual/UG, this extension is not recognized by ifort. Any tricks to do this anyway ? I am trying to compile a codebase that has .f95 extension for some of the files, and I don't really want to rename the files.
I am using Intel Fortran compiler for Linux, version 8.1. This is what I get when compiling file with .f95 extension:
$> ifort -c example.f95
ifort: Command line warning: no action performed for specified file(s).
hi,I found in my fortrain 90 code that segamentation fault comes up when common variables appear in the code, but nothing goes wrong if I delete the statement of common variables. If it is the memory's problem, then how come it works without common variables? Here I just have one common variable. thanks.Lu
The Gelato Federation announces the keynote speakers for the Gelato ICE: Itanium Conference & Expo to be held on April 23-26, 2006 in San Jose, California, USA. Jerry Huck (HP), James Reinders (Intel Corporation), Don Soltis (Intel Corporation), and William Worley (Secure64 and Itanium Solutions Alliance) are scheduled to present on the past, present, and future developments of the Intel Itanium architecture. Speaker biographies are available at http://www.gelato.org/meeting/#keynote
I have a problem linking a mixed c/fortran code:
Here is the error message: