Error 6633: Calling a function from a module, passing a module-defined type
Hello,I am wrestling with the static analysis capabilities of Intel Fortran, trying to find whatever is causing my application to crash intermittently.I am experiencing the following:Compiling with...
View ArticlePossible to customize the default Visual Fortran project?
For most of my Visual Studio (2012) projects I want a certain folder tree structure ("filters" in VS) and some non-standard compiler options.Is it possible to change the default created vfproj files;...
View Articleissue with assumed length + assumed shape character array declaration
It is unclear to me why the following declaration is causing a run-time error when compiled in ifort. This source does run as expected without error when compiled using GNU GCC version 4.4.3:subroutine...
View ArticleHow to get started building 64-bit applications
I have VS 2010 Pro installed, along with the latest version of Visual Fortran Studio.I cannot find any installation settings or anything in VS that enables me to build 64-bit applications.According to...
View ArticleAllocate Source= question
Dear all,I have a question regarding the following code snippet: MODULE TestModule !{ TYPE X0Type REAL(KIND=8), DIMENSION(:),ALLOCATABLE :: X ENDTYPE TYPE SL_DataStrucType REAL(KIND=8),...
View ArticleEquivalent of the C++ \n with fortran
I'm trying to read an ASCII file with MPI_FILE_READ. I found out that I need first of all to read the entire file and put it on a character string.The problem is that I didn't found how to split this...
View ArticleArray problem
I am using the following code for random permutations: subroutine rperm(nsim, IPERM1) integer, intent(in) :: nsim integer, dimension(:), intent(out) :: IPERM1 integer :: mynumber, i, j, k...
View ArticleDebugging APPCRASH windows dialog
I am trying to debug a long running windows fortran model. The problem seems to present only after the model has been running for over 100 hours. The model is a single threaded fortran application...
View ArticleRuntime library questions/issues
I was about to ask a question regarding x64 runtime libraries, but discovered some other issues with my projects:1. Documentation for v14 does not include /libs:static as a possible compiler switch,...
View Articlestatic analysis: buffer overflow
Hello all,The following error is generated by a static analysis of my application:error #12048: buffer overflow: array index of "DESIND" is outside the bounds; array...
View ArticleDetecting NaN
For some combination of sets of data, by program fails to converge.I have determined that some variables end up with NaN.My program doesn't stop when I'm using /fpe:0Any ideas how to catch where this...
View ArticleSegmentation fault when calling a subroutine
I am calling the lapack subroutine DLAPMT in the following snippet of my code:c Permute matrix c_all according to IPERM1 do i=1, n_sources do k=1,g_layers do l=1,n_layers...
View Articleiso_C_binding c_sizeof
A quick question is the f2008 iso_C_binding c_sizeof implemented in the latest release (an am not as yet using this) and if not when could we expect this to be implemented? It isn't an issue, more a...
View Articledebugger exceptions for fortran file I/O for XE 14.0.1.139
I just installed XE 14.0.1.139 which seemed to go OK. I did a clean solution and then a full debug build for X32 which appeared to go normally. This is a Quickwin application BTW.When running under...
View ArticleSpecial loops
I am trying to implement some Fortran code from someone else as follows: do i=1,n do j=1,i S = A(i,j) - G(j,j:n) * G(i,j:n)' enddo enddo I believe it is meant to be equivalent to the...
View ArticleSolution Explorer files no longer load automatically
After things were for a long time working swimmingly, something must have "slipped". Suddenly, without warning, when I open an IVF Solution (*.sln), the IDE comes up and the f90 source file names...
View ArticleDo Concurrent, Pure Functions & MKL
I have a loop where I am trying to use Do Current. The compiler gives an error on the code errcode=vdrnggaussian( method, stream, free_vars, tmp_mutant, 0.0_8, 0.06_8) because it claims that...
View ArticleLink errors with /warn:interfaces
I have started getting link errors when I have /warn:interfaces turned on. All the errors are of the form error LNK2019: unresolved external symbol __imp_XXXX referenced in function YYYYThe link error...
View Articleconstruct names must be unique..?
I want to use construct names for multiply nested DO constructs, but when I try to have several instances of such a "multiply nested DO block" (i.e. with the same names) within one scope the compiler...
View ArticleBest way to set up "once only" code ?
I have a subroutine where I only want to execute a block of statements the FIRST time it's called.I tried to do it this way:INTEGER OnceDATA once/0/IF(ONCE == 0)THEN! EXECUTES A BLOCK OF STATEMENTS...
View Article