pipe screen output to file

i am fairly new to fortran and am using an existing code it opens a file using

 OPEN (6,FILE='outdata')

it is my understand that 6 is reserved for printing to screen and so this works to direct anything printed to screen to the outdata file and it works when i use gfortran for example 

but when i use ifort it does not is there any simple way for me to fix this with out going through the entire code and changing every print statement (there are many of them)

Trying to Update to 2016 version

I have Intel Parallel Studio 2015 XE Composer Edition for Fortran Windows installed and downloaded the 2016 version and it takes forever to come to the welcome screen and then tells me it can't install and has the warning below:


 Intel® Visual Fortran Compiler will not work because none of the supported environments is found on your computer

Call Fortran from C


I am trying to learn how to call Fortran from C, I am able to create .so file from C and call it from Ruby On Rails,

the C code is:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

long add(long maxn, double delta, double conf, char *errMsg)
        long ERR_MSG_LENGTH, answer;
        unsigned i;
        char * iarr;

       iarr = "Hello!";

        answer = (long) (maxn+delta+conf);

Call Fortran from C


Hi, I have many codes in Fortran and I wrapped it by C to create .dylib in Mac and I can call it from Ruby On Rails. 

Recently we have lots of trouble with Mac Server and we want to transfer everything to Linux, but the Fortran code

will not compile in Linux, the error message is !!DEC$ ATTRIBUTES DLLEXPORT, C :: addsize is not supported

in this platform. Is there a way to get around this without having to rewrite Fortran codes using  ISO_C_BINDING?






VS2015 Update 1 is there

Dear all,

I took the risk to install update 1 of VS2015 today. I'm happy to say, that it works without any problems at my machine. PSXE 2016 update 1 runs fine. Even better, the problem with the wrong link to the win10 SDK lib folder is gone, because VS2015.1 installs the SDK with the version 10.0.10240.0 on my win7 x64 system. The manuel correction is not necessary anymore ( #2).

Bug in Intel Fortran compiler when Run-Time\Runtime Error Checking = All?

In Debug version, if you have selected in project properties Run-Time\Runtime Error Checking = All, the program crashes immediately when started. The error message in the dialog is about not able to find entry point for for__rtc_uninit_use_src. The dll mentioned in the error message is LIBIFCOREMD.DLL. The appropiate selection in the project properties is Run-Time\Runtime Error Checking = Custom. Make sure that "Check Uninitialized Variables" equals to "No". That selection fixed the problem.

Intel Math Kernel Library Cookbook Samples

The attached zip format archive contains samples for the Intel Math Kernel Library Cookbook, which you can find at

Updated: December 1, 2015

  • Desenvolvedores
  • Apple OS X*
  • Linux*
  • Microsoft Windows* (XP, Vista, 7)
  • Microsoft Windows* 8.x
  • C/C++
  • Fortran
  • Biblioteca kernel de matemática Intel®
  • Export Fortran arrays during debug in Visual Studio 2012 - Fortran array visualizer?

    I would like to export some array for comparing reason. The export should be done during the debug, of course when the code is stopped in an interruption point.

    I know if I go with the mouse on the array, I can see the elements and if I put this array in an expression of control (I have the italian version of Visual Studio, so I am just translating, don't know if it's called in another way... sorry for that) I can see it during the debug.

    What I need to do is export this array someway (text file, excel, matlab....) because I want to compare it with with others.

    Assine o Fortran