Dynamic Libraries and Modules
Hello,I am trying to call procedures defined in a module in a dll that I created myself. I am mostly following the instructions that I found here. In particular, for 'simplicity' purposes, I am trying...
View Articleadapting Windows .dll project to Linux .so
We are developing a realtime audio processor using Fortran for the DSP engine and C++ for the audio interface and GUI. So far, we have worked in Windows, and the Fortran generates a dll that is called...
View ArticleQ 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 ArticleA Bug Occur when I call a pure subroutine in OpenMP
1, The pure subroutine defined in a.f90, there is no OpenMP used here.2, the OpenMP used in m.f90when I compile the a.f90 like `ifort a.f90 -c -o a.f90` without -openmpwrong result returned from the...
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 ArticleMany subprograms require IFPORT or IFCORE
Greetings. A little background, if I may: I am porting a legacy Fortran application that is over 30 years old, with some components that date back almost 40 years, even prior to the FORTRAN 77...
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 ArticleVersion and optimization dependent segfault
I have a segfault I would appreciate some help with. A nearly minimal code that reproduces it is attached. The background is, that I am developing a code that handles big matrices, which should be...
View Articlereading big endian file?
I'm trying to read a big endian file from http://yann.lecun.com/exdb/mnist/So far I open the file as in a test programProgram Arraytest3 Type magic byte :: byte1 ! INTEGER(1) byte :: byte2 byte ::...
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 Articlegeneration of names for linker
Howdy. More on my super-legacy application (which actually consists of a few large programs and a couple of dozen smaller ones). If am over-using my access to this forum, just say so. Then again,...
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 ArticleOOP function overriding bug
Hi all,When using a generic operator in an extended type, the operator binding is not added to the list from the ' mother' type. The compiler reject the code saying the operation is invalid. If you...
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 Article