Q about passing array boundaries or sizes
Suppose I have this:integer x(100)call xprint(x(23:70) )endsubroutine xprint(x)integer x(*)end subroutineNormally I would have to ALSO tell it how many elements of X to print.But I was wondering if...
View ArticleWin32/x64 checking current executable??
I have a test program that I use to test all of the calls in my DLL app.Currently, this is a Win32 program calling a Win32 DLL - all good.I now want to use the same code, built as x64 to test the x64...
View ArticleBogus warning about popcnt with /stand:f08 in VFC 2013
The trivial program below compiled with Intel Visual Fortran Composer 2013 gives a bogus warning when /stand:f08 is used (Fortran 2008 introduced the Popcnt intrinsic). Warning 1 warning #7416: Fortran...
View ArticleDifferent results from Debug and Release builds of the same code
Hello,I have a time-marching solution to a non-linear PDE using Newton-Raphson iteration method, and once in a while the debug version will not converge while the release version will, or the release...
View ArticlePolymorphic array - Assign elements of different types
Hello Forum!Let's say I have a supertype like this type, public :: supertype character(len=:), allocatable :: id character(len=:), allocatable :: type contains end typeand multiple subtypes like these...
View Articlepreprocessor directives for gfortran and Intel
I help to develop a Fortran/C/C++ open-source project (open-fvs) that builds on Unix, MinGW and VisualStudio/Intel Fortran tool chains, based on cmake tools. I've been stumped by a recent Fortran...
View ArticleDynamic Allocation
Good morning,I would like to know what is the reason for the following:I am dynamically allocating some arrays in my code as:allocate(dzgpbp(Nzbpg), STAT = AllocateStatus) if (AllocateStatus /= 0) STOP...
View ArticleTrouble reading a csv file
Comma-separated-values are frequently used in my work, as for example Excel (and other modern languages) are very handy at reading them. In Fortran it is not so easy. I try list-directed input, which...
View Articlerecursive subroutines and significant slow down
I am working on a code that is used as a user-subroutine for a commercial finite element software. The code gets compiled to a dll file and loaded by the commercial software during runtime. The code...
View ArticleQuickwin Reffresher
Hello,In 2003, using Compaq Visual Fortran, I created a little Quickwin utility. It is used to compare two files created using different releases of the same program. The user specifies two file names...
View ArticleIntel Parallel Studio XE 2015 Composer Edition Intel(R) 64 Visual Studio 2013
Dear Sir/Madam,Can someone please help me with this question:I have installed a 30 day trial version of Visual Studio 2013 to run Fortran; however, I can compile and run codes with IA-32 but not with...
View Articlenetcdf binary for IVF Composer XE 13
Hi,I don't have C compiler for IVF XE 13. Can somebody please share their binary version of netcdf library for 64 bit version for windows 7 using IVF XE 13?. I need this very badly to run large ocean...
View ArticleFortran XE 2015 Compiler slower than XE 2013 SP1
I recently upgraded from Intel Fortran Studio XE 2013 SP1 Update 2 to Parallel Studio XE 2015 and am finding that my application now runs quite a bit slower than with the old compiler.Both versions are...
View ArticleLinker errors when calling a C++ routines from Fortran
I am sure that my error is a trivial one here, but I am at a loss for what I am doing wrong. I want to test returning a struct from C++ to my Fortran code, but I can't even get the test program to...
View ArticleOpenMP internal compiler limits
Steve, Colleagues,I am working with a relatively large program (~9000 lines of code) with deeply-nested loops. I have never been able to get the compiler to act on the !$omp parallel do directive --...
View ArticleAbout WideCharToMultiByte (Win32 API)
Hello.I have converted the MBCS(ANSI/UTF8) to Widecharacter using MultiByteToWideChar successfully. But when I convert it back to MBCS(ANSI/UTF8) using WideCharToMultiByte, it always return...
View ArticlePassing a UDT/struct between Fortran and C++
This is a follow on to my previous question (https://software.intel.com/en-us/forums/topic/534413), I am able to pass a simple data type as a return value, but what I really want to do is pass a...
View ArticleInstallation failure of Fortran Composer XE 2013
The installation fails because the installer cannot write to c:\program fies (x86)\intel\composer xe 2013 sp1\compileia32\libipgo.lib. Verify that you have access to that directory. When I inspect...
View ArticleXE 2015: User and Reference Guide in Microsoft Help Viewer?
I just noticed my installation of Intel Parallel Studio 2015 doesn't add the content for "User and Reference Guide for the Intel® Fortran Compiler 15.0" in Microsoft Help Viewer. I tried to add it...
View ArticleParameterized derived type
I have a question about the newly implemented parameterized derived types language feature:If I use a KIND type parameter when specifying array DIMENSIONs of a DT component, and write special...
View Article