Files as Objects / A comment for discussion
Dear All,Since Fortran tends to be more and more object-oriented, I consider to be useful to have some kind of default objects that are related to external files. For example a default type...
View ArticleExceptions Handling
Dear all,I'm currently rewritting an old FORTRAN program, and I would like to have a clean exception handling, such as the try {} catch {} in C++.Using my own exceptions, I would be able to generate...
View ArticleWhat is the minimum version that supports allocatable arrays of polymorphic...
I have some code I use for analysis that makes use of allocatable arrays of polymorphic types in the following way:One derived type contains an allocatable array of a polymorphic type cm1_base, where...
View ArticleXE 2013 sp1
I am trying to compile Ncar Graphics:http://ngwww.ucar.edu/This has worked in the past, but I can't get it to work using XE 2013 SP1. I went back to an earlier version of the compilers and was able to...
View Article[WRF 3.5.1] **Internal compiler error: segmentation violation signal raised**...
Dear Sirs!While building WRF 3.5.1, I encountered following errors: mpif90 -f90=ifort -o module_bl_temf.o -c -O3 -ip -fp-model precise -w -ftz -align all -fno-alias -FR -convert big_endian -I../dyn_em...
View ArticleSegfault when passing procedure, pointer to function but not when calling...
My C code: #include <stdio.h> #include <stdlib.h> struct function_struct { double (* function) (double x); }; typedef struct function_struct gsl_function; gsl_function...
View Articlesome compiler options relevant to compilation cascades
I've seen that NAG provides some options to control the output and behavior surrounding .mod files. I've poured through the documentation, and I can't find Intel's direct equivalents to these options,...
View Article**Internal compiler error: segmentation violation signal raised** with -O3
Dear Intel developers,Compilation of this subroutine optrms.F (See attachment) leads to an **Internal compiler error: segmentation violation signal raised** with -O3 options. This error disappears...
View ArticleCompiler bug with associate construct
I was playing around with a way to record log messages in an internal "file" (character variable) when I came upon a strange compiler notice. The following module does not compile, producing the...
View ArticleProblems reading from a named pipe
I have problems with a Fortran program reading contents from a named pipe in Linux. This can be experienced, for example, using awk: ifort -O test_fifo.f90 -o test_fifo rm -f file.fifo mkfifo file.fifo...
View ArticleMysterious ifort compilation failure when -fpp is used with input file is on...
This is a bit hard to describe, and unbelievable, too!All of a sudden, one of our files can not be compiled by ifort anymore, and as I look into the cause of the failure, it looks like -fpp really mess...
View ArticleXcode 5.1 unsupported?
Tried updating Xcode to 5.1, but it seems to have dropped my FORTRAN 14.0 compiler after multiple attempts to re-install the compiler after the upgrade. Downgraded Xcode to 5.0.2 and everything works...
View ArticleCompilations create intelremotemonfifo.500 file
With update 2 of the Composer XE Fortran (and C++) compilers on a RedHat 6.5 32-bit system, the compilation process leaves a fifo file of the form prw-------. 1 fitchk kklsim 0 Mar 13 17:19...
View ArticleInquire statement with -openmp option
Dear forum,I actually use Intel composer_xe_2013_sp1.2.144 with openMP.I separated the following issue from my software project. The program fails to execute in case of usingINQUIRE (FILE= ... ,...
View ArticleOMP_GET_WTIME and names as_is option
When testing Fortran with the ffte (Version 6.0; http://www.ffte.jp/) I came across the following issue:The code uses a call OMP_GET_WTIME for runtime measurement. When using everything without...
View ArticleFinalizer with allocatable components
Hello,I am trying to understand how finalizers work in Fortran.I have written a minimal test program containing a derived type with just a final procedure and an allocatable component.It appears that...
View Article"Traveling" forrtl: severe(408): fort (2): error
I am using Intel Fortran Compiler 14.02.2.14.I am compiling with the following flags " -fpp -O0 -check all -traceback -g -vec-report0 -debug all -heap-arrays -ftrapuv".I keep on getting errors of the...
View ArticleWhy the result depends on -g option and type of function
Just a small program. REAL(8) FUNCTION DUMMY(i) implicit none integer, intent(in) :: i DUMMY=dble(i) write(*,*) 'i=', dble(i),'res=',DUMMY RETURN END FUNCTION program test real(8) :: xxx xxx=DUMMY(2)...
View ArticleMPICH2-1.5 Install problem - help!
I am trying to install mpich2-1.5 on my linux system (RHEL 6.5) but I can'tThe configure failed showingconfigure error: ***** Incompatible Fortran and C Object File Types! *****F77 object file type...
View Article