Intel® Fortran Compiler

Find All References causes Visual Studio to become unresponsive

When I right click a Fortran subroutine and choose "Find All References" from the context menu, Visual Studio becomes unresponsive. I must use task manager to end Visual Studio's process.

My solution is comprised of mixed languages C++\C\Fortran\.NET.

Microsoft Visual Studio Premium 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework Version 4.5.51209

repeat initialization of local variable

I found a forum topic similar to this, from 2009.  Notwithstanding the Fortran standard: ""A variable, or part of a variable, shall not be explicitly initialized more than once in a program", there is a method to the following madness.

This legacy program defined an array for which the "default" value was 0, and some elements were then assigned non-zero values.  A trivial example:

integer a(2,2,2)
data a/8*0/
data a(2,2,2)/1/

initialization of local variables

My co-developer reports that, contrary to his expectations, Intel Fortran seems to be initializing local numeric variables, both scalar and array, to 0 or 0.0

I should note that In our application, all local variables are saved, and all arrays are pre-allocated (sizes are explicit in the code).  No arrays or structures are allocated at run-time, and no local variables are recursive.

Is his generalization correct?



Parameterized Derived Data Type Allocation Error

Hi all, the following is a simplified version of a code that I wrote that does not seem to work. For the larger code I just get a generic "compliation error" and then the compiler stops. I tracked that to where I am passing the parameterized derived data type into a subroutine with assumed parameters (eg TYPE (MYTYPE(*,*)),INTENT(INOUT):: TYP). I am not using kind numbers, so I it only contains portions that are defined with LEN in the data type.


Below is an example code that results in two different errors:

Redistributable Libraries and/or static compilation


I need to send a co-worker the redistributable libraries for the latest Fortran compiler. Where can I find those (in my computer or on-line)?

Also, does the recipient have to do anything else (move dll's to same directory as exe, define an environment variable)?

As an alternative, is there an easy way to link everything statically? This is a simple Fortran console application that does not call any special numerical packages.

Calling a C function in Visual Studio from a Visual Fortran code


I have a Visual Studio 2012 installed on Windows 8.1. Also, I installed Visual Fortran. I want to create a solution with two projects one in Fortran and one in C, then be able to call C function from Fortran code. Can anyone, please, show a simple step by step example on how to achieve this in VS? Thanks.

runtime problems with PSBLAS library


About two years ago I reported ifort F03 compilation issues with  PSBLAS library ( With Intel 2015, the compilation issues are solved but there are runtime problems. I have also tried the Ifort 2016 Beta and same problem occurs. PSBLAS is usable with several other compilers (such as GNU/IBM/CRAY) other than Intel. We are thoroughly using Intel Compilers for research and using PSBLAS will save us big time for not reinventing the wheel.

Debugger watch window subscript out of range

I'm debugging a program which is set up to reference memory locations outside the range of the dimension of various variables. Program is compiled so subscripts are not checked for range, but when I use the debugger an try to look at the variable in a watch window, I always get a 'subscript out of range' when I use a subscript that I know gives me the location of the information I want to see. Is there any way to keep the watch window from checking on the subscript of a variable?

订阅 Intel® Fortran Compiler