Creating a shared library
Hello everybody,I've been trying to create a shared library from some fortran code in order to be loaded and used from a python script using ctypes. My code consists of several fortran files. I compile...
View Articlewriting vector to File - differences between Gfortran and Ifort
Hi All,I have a code that I'm migrating from gfortran to ifort.After a number of time steps I write a vector (~ 500 lines) to a file using:WRITE (unit, *) Time_Steps, vector(:)In gfortran this gives me...
View ArticleCompile error/warning then I/O syntax error
HiI am trying to build a meteorological model in a Linux cluster (Ubuntu 12.04) using Intel fortran compiler version 14.0.1. But when trying to compile fdgrib2 module I get this warning...
View Articlevectorisation unsuccessful (ifort 13.1.3) [double complex arrays]
Dear all, I have several 2D allocatable arrays of type complex(kind=kind(1.D0))I want to do this:... do j=1,dim2 do i=1,dim1 a(i,j)=b(i,j) / c(i,j) end do end do ...When adding a !dir$...
View ArticleINtel vectorization not efficient
Dear Intel developers,I have a Fortran piece of code where my program spend a lot of times:k=0id = 1do j = start, end do i = 1, ns(j) k = k + 1 if(selectT(lx00(i), j, id) > 1.00) &...
View ArticleWhat is the down side to compiling code with "-g -O3" ??
Hi,I am just trying to understand what the implication of compiling production codes with "-g -O3" would be.Other than binary size being larger what is the downside of including the debug symbols on...
View ArticleCompiling with OpenMP directives : debugger provides wrong line numbers
Hi,I have some difficulties due to OMP directives. I am compiling on linux64 with ifort 12.1.3.293 build 20120212 and following flags: -g -O0 -fp-model precise -openmp -Dmkl -ftz -extend-source...
View Articleifort 14 gets mixed up when renaming USEd classes
Dear readers,I stumbled into the following problem when trying to implement a dynamic array type, similar to the approach in FLIBs vector, but using F2008 objects. When I use two different vectors in...
View ArticleIfort vectorization not efficient
Dear Intel developers,I have a Fortran piece of code where my program spend a lot of times:k=0id = 1do j = start, end do i = 1, ns(j) k = k + 1 if(selectT(lx00(i), j, id) > 1.00) &...
View Articleifort: error #10236: File not found:
Hi All,I am trying to compile a makefile with ifortran on supercomputer. Before compilation, I had to compile several other makefiles (to create necessary libraries). I could compile them without...
View Articlebuggy coarray element assignment for derived type with allocatable component
I have seen a couple of similar bug reports on the forum, but not sure this is identical, so here goes.With ifort 14.0.1.106 using -assume realloc_lhs, the following code gives a segfault at line 12,...
View Articlebeginner for help to use fortran by Xcode
am new to fortran, Xcode and mac area. But I don't know how to use fortran. At first, I have problem starting fortran. I followed this link...
View Articleerror #7001: Error in creating the compiled module file.
Hi AllI am trying to compile a fortran file with ifortran on a redhat linux machine.I get the following error when I try to compile it. I have attached the file to this post.I already have files...
View Article'var$2004' is being used without being defined
Hi all,I am encountering a strange message related to run time check. I compiled with ifort 12.1.3.293 build 20120212 on linux64 with following options : -g -O0 -fp-model precise -openmp -Dmkl -ftz...
View ArticleOpenMP and variables named "alloc"
I've just run across a funny bug that someone might be able to unmystify/fix for me. Consider the following code subroutine task_bug() !$ use omp_lib implicit none integer :: alloc !$OMP TASK...
View ArticleSIGSEGV only with new Fortran Compiler (14.0.1) build date 20131008 (Composer...
Dear All,I have severe problems running my application when compiling it with the newest release of the Intel Fortran Compiler (14.0.1), i.e. I'm getting a segmentation fault in a rather simple early...
View ArticleInstall ABAQUS in Linux system and link with Fortran Compiler
Hello everyone,I used to use ABAQUS in Window OS and successfully link with Fortran Compiler. And I have already bought the Intel Fortran 11.1 license. Now, I want to install ABAQUS in Linux system...
View ArticleError optional arrays
Dear all,I stumbled upon a compiler-error (or is it a restriction in the standard?) with passing optional arrays in mixed assumed- and explicit shape. module m implicit none contains !...
View ArticleUndefined Reference to Intrinsic Function NORM2_
I am trying to compile some FORTRAN code using this command:ifort -fPIC *.o -L./ libmylib.a -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -o outfile And I am getting an error: "undefined...
View ArticleC_NULL_PTR is passed incorrectly with -standard-semantics option
The following example calls a C function with a void* argument, first passing an associated TYPE(C_PTR) actual, and then passing C_NULL_PTR. When compiled with ifort 13.1.2 and the -standard-semantics...
View Article