Quantcast
Channel: Intel® Fortran Compiler for Linux* and macOS*
Browsing all 2583 articles
Browse latest View live

CALL EXIT vs STOP

I am working with a legacy code which contains the line "CALL EXIT" to quit the program when an error is encountered.  Can someone explain the difference between "CALL EXIT" and STOP?Thanks....

View Article


In an intrinsic assignment statement, variable shall not be polymorphic.

Greetings. I am facing a challenge trying to do generic programming with Fortran (templates), and searching the web I have decided that the most elegant solution is to use data polymorphism. However it...

View Article


Output statement overflows record on writing a namelist to a string

This piece of code,program dong type x integer :: a,b,c end type x type(x) :: xx character(len=65536) :: str namelist /zac/ xx write(str,nml=zac) print *, trim(str) end program dong breaks down with...

View Article

Intel MPI in Composer Edition ?

Hi everyone,by using the Intel® Fortran Compiler installed on Linux with the Composer Edition version,does we are allow to use Intel MPI for doing compilation ?or do we need the Cluster Edition, which...

View Article

Problem getting tracebackqq information in a MPI process

Dear all,I've a problem with obtaining the tracebackqq information.I have a (simplified) routine:subroutine my_trace() use IFCORE implicit none call tracebackqq(user_exit_code=-1) end subroutine When...

View Article


Go To vs If Statement

I have two questions regarding the following legacy code segment:      do i=1, n_total, increment           diff = array(i) - x1          if (diff < 0.0_dp) then          !   do something...

View Article

Ifort 17.0.0 compiler error

Dear Intel Fortran Compiler support team,I think that the code snippet below is standard conforming but I'm getting an error at compile-time with ifort 17.0.0.Is this code valid?Best...

View Article

Derived type with coarray component

Dear all, I am facing with a SIGSEGV that is "terrible" because I cannot reproduce always, sometimes occurs sometimes not and in any case the results are not as expected even when the SIGSEGV occurs....

View Article


Floating point equivalence check

I know this topic has been visit many times in this forum but I was wondering if there is now a standard way of coding floating point equivalence in an if statement. Consider the following:if (diff ==...

View Article


Warning #6379: The structure contains one or more misaligned fields

The following derived type definition generates the warning: warning #6379: The structure contains one or more misaligned fields type table_format         sequence               real(kind=dp),...

View Article

data type or not?

Dear all,I have a question regarding data type.I have some big vector: PP,TT,PET. I would like to put them in a data type variable TYPE::tMACROCELLNODE INTEGER :: nElem...

View Article

Is it "GOTO" or "GO TO"?

Quick question....I realize that the GOTO statement is to be avoided in programming but am curious as to which is the correct syntax for this command:  GOTO or GO TO. I know both versions are supported...

View Article

iforrtl: severe (67): input statement requires too much data, unit 20 error

Hi Support,While I am executing my fortran program which reads huge Unformatted data, I am getting following error.iitmlogin3:/hpcs/bipink/LES/cloud_phy $ ./a.out forrtl: severe (67): input statement...

View Article


Image may be NSFW.
Clik here to view.

Intel 17 ICE, unique to v17

Steve, Kevin,I've isolated an ICE occurring in 17 and 17 Update 1.  Doesn't seem to be in 16 Update 3, but haven't check the later v16 compilers fully.  Looks like IFORT Front-end. cat intel17bug.f90...

View Article

reinterpreting complex as reals

Consider the following trick,module xxx  implicit none  integer, parameter :: stdprec=kind(1.d0) contains  function conv2real(carr)    use, intrinsic :: iso_c_binding    ! returns real pointer to a...

View Article


Compile problem

Hi, all. I've been compiling Fortran file using UNIX server or my labtop, Mac. Since my commonly used subroutines or functions are in the folder named as subs, I compile it as the below and it have no...

View Article

Image may be NSFW.
Clik here to view.

Problem with sub sub submodules

There seems to be a problem with sub sub submodules in Intel Fortran 17.0.1 (example code attached):ifort -c mtop.f90 ifort -c submod.f90 ifort -c subsubmod.f90 ifort -c subsubsubmod.f90...

View Article


Problems with openMP 4.0

I recently upgraded from an old version of the intel fortran compiler (11.1), to a newer version (16.0.3).  Unfortunately, my software will not run correctly when compiled in the new ifort using...

View Article

Local Variables Declaration and Initialization

This is a two part question.I been struggling to come up with a clear and concise way to handle the declaration of local variables. For reason I do not understand, any local variable given a value...

View Article

Structure Initialization

Is there a way to programatically initialize derived types or structures that are automatic?  I created a C function which accepts a CFI_cdesc_t * parameter, and then uses:memset( a->base_addr, 0,...

View Article
Browsing all 2583 articles
Browse latest View live