Unexpected compiler error with the use of a type-bound procedure returning a...
The compiler error with the following code appears to be incorrect:module m implicit none private type, public :: t private integer, pointer :: m_i contains private procedure, pass(this), public ::...
View ArticleCompiling without MAIN program to Link with ABAQUS
Greetings,I'm writing an ABAQUS FILM user subroutine. The subroutine uses many supporting modules to get the job done, and works well with a dummy driver. I'm most experienced writing stand-alone...
View ArticleSlow debugging when variables in watch window using VS2008 with Windows 8.1
This will not be an easy question to handle for anyone as it involves a lot of variables. We shifted on to Windows 8.1 and started observing this issue.OS: Windows 8.1 EnterpriseVS: Visual Studio 2008...
View ArticleAccess 2D Fortran array from C - odd behaviour
This topic must have been beaten to death, but the issue I've encountered seems very odd.Here is the C code:void test_array(int *, int *, double **); // To test accessing a Fortran 2D array.void...
View ArticleReference Material for Visual Fortran Windowing Applications
Hello, I am attempting to create a simple windowing application in Fortran using Visual Studio. I have experience with C and BASIC, but I am completely new to Fortran. In order to create my...
View ArticleLinking IVF Compiled DLL to Qt Application
Hi everybody, This is my first attempt at library assembly, so please have mercy! Let me also start by saying to Steve Lionel: Wow, you answer a lot, I hope they are paying you well there at Intel!I am...
View Articleassigning input file to stdin when debugging fortran in intel visual studio
I want to run a fortran code in debug mode in visual studio. the code reads input from stdin (unif 5). I would like it to read from an input file. Can you tell me how to assign my input file to stdin?
View ArticleMultithreaded vs Multithread DLL
The following problem, involving "Multithreaded" vs. "Multithread Dll" Runtime Libraries, is not critical to anything I'm doing, but my curiosity is aroused. The program is written in .f90...
View ArticlePolymorphic dummy arguments and ICE
This discussion is going to be generic until I can create a suitable small test case. I am just hoping somebody has seen this problem before and can point me in the right direction.I am attempting to...
View ArticleDLLEXPORT and unresolved external reference
I'm compiling a fortran DLL project. I have two subroutines in the same .f file. The first one shown below calls the second one, but I'm getting unresolved external symbol. The problem must be how I'm...
View ArticleLNK2019 error
I am in the process of converting from Compaq Visual Fortran to Intel Visual Fortran. I am trying to run simple "hello_world" program.My program complies just fine with: "Ifort /c...
View ArticleWhat's TYPE accept
I found these two TYPE declarations are not welcome:1. EXTERNAL in type is not acceptTYPE myvar EXTERNAL :: fun END TYPE2. this trick is not allowedTYPE myvec INTEGER :: n REAL*8, DIMENSION(1:n) :: x...
View ArticleArray of EXTERNAL
In the manual I found:EXTERNAL FACET CALL BAR(FACET) SUBROUTINE BAR(F) EXTERNAL F CALL F(2)I would like something as:SUBROUTINE BAR(F,t,y) EXTERNAL, DIMENSION(1:2) :: F EXTERNAL fun fun = F(1) CALL...
View ArticleUsing variables in a structure repeatedly - as in Pascal "WITH"
If I have a structure called fred which contains many variables, eg. x and y, is there a way to avoid keeping having to preface the variables everywhere I use them with "fred%". This used to be...
View ArticleTARGET question
I have some code which is supposed to set up a structure foo of type t_stuff. This type contains two allocatable arrays, boxes and stres. One of these types has a pointer to the...
View ArticleDebugging allocatable string don't work with VS2012, VS 2013 and VS 2015
Hello,Sorry I did not find a correct thread to post my question so I posted as new topic.But one thing its a bit annoying is that with VS 2012 onwards I cannot view data of allocated string while...
View ArticleCompiler fortran Error cfx5mkext -64bit
i have try to write this programm but don´t work i become errors i have no idea please i need a help. i would like to calculate CD #include "cfx5ext.h" dllexport(drag_factor) SUBROUTINE...
View Articlefatal error LNK1104 and LNK1561
I installed Visual Studio Community 2015 and Parallel Studio XE 2015 Update 4. After initial problems with the integration of the Fortran specific parts in the Visual Studio interface...
View ArticleDebugging internal Fortran subroutine
Hello,I have a Fortran subroutine that has internal subroutines and functions which it calls. The program runs, but once I step into an internal subroutine, debugging variables define in principal...
View ArticleFortran Runtime Library (forrtl) error numbers and iostat values
Hi, I am working on improving error handling in my codes, and have ran into some questions:1) When reading a file, I want to check “iostat” values to see whether EOF is reached (IVF seems to set...
View Article