Debugging a console program
Hi,I have a console program that uses command line arguments likeapp.exe inp1.txt inp2.txt out1.txt out2.bmpand I use call GETARG(3,fln1) call GETARG(4,fln2) to supply the filenames for the...
View ArticleLink error
Hello I am trying to build PETSc inside a fortran project. And after hard work I got this:Deleting intermediate files and output files for project 'PETScFORTRAN', configuration 'Debug|x64'....
View ArticleCALL for attention and discussion: recent paper comparing an equation solver...
NOTE: this is a copy of the thread at the Linux forum. My apologies to those who have seen it there - I'm posting it here with the hope of getting more comments and feedback and generating some...
View ArticleHeap corruption from VB callback
The attached project is a distillation of an error that I am having when calling a Fortran DLL from a VB.Net executable.We are trying to use a callback from the Fortran to display output in a VB rich...
View ArticleCan I compile a program here that will run on a tablet?
I guess its a different operating system entirely, but is there a way to generate executable code herethat I can migrate over to a tablet? Or does that require a separate compiler I would have to...
View Articleifort-14.0 -cpp not referentially transparent
$ cat macro.F90 #define X_LT(a) (a < 3) #define X_GE(a) (!X_LT(a)) #if !X_LT(3) #warning no problem here #endif #if X_GE(3) #warning "syntax error" with ifort, not with gfortran #endif $ ifort -c...
View Article!$OMP SIMD or !DIR$ SIMD ?
Hi,I have two quick questions regarding using SIMD directives.(1) I am currently using !DIR$ SIMD to help the compiler to vectorize the loops. But I just noticed that in OpenMP 4.0 we have the...
View Articleifort 11.1 and O2 optimization: wrong results
Dear all,The code in question:!################## ! MODULE FOR TYPES !################## MODULE mod_types IMPLICIT NONE PRIVATE PUBLIC :: type_glob, type_geom, type_edge !------------- ! Type node...
View ArticleFormat label and Contains block
Hi all,i'm working on a main routine with many other subroutine in a contains block. In the main one, I defined some format labels but I can't use them in the contains block : they are no more defined....
View ArticleDeferred length string component: segmentation fault
In a project I am working on, I changed a fixed length string in a structure within a module to a deferred length string and the result was an internal compiler error (the code compiled and ran without...
View ArticleMigration of CVF Project with Custom Build Steps
I am currently migrating a project from VS6/CVF6.6 into VS2012/IVF2013. The way the FORTRAN libraries were set up in my project, I had a folder consisting of .f files and a folder of .for files...
View Articleinconsistent treatment of TYPE vs. REAL in 'stream' write with Intel...
I'm seeing different bit patterns when I write a REAL variable to file as component of a TYPE as opposed to when it's just a REAL in stream output while using the -convert big_endian option. Given the...
View ArticleVALUE Attribute Vs INTENT(IN)
This is just a general question for peoples opinions on the VALUE attribute used in subroutines. I know it The VALUE attributie is sometimes necessary for interoperability with C, but my interest is...
View ArticleFail to link 64-bit Code
I have a working 32-bit software library written in Fortran with low-level stuff in C/C++ It has worked for years.It is fine.When I re-build the library in 64-bit mode, none of the C functions are...
View ArticleEigenvectors using MKL
Hi, I need help to calculate Eigenvectors using MKL routines.I have some codes that were compiled using Compaq Visual Fortran and they had IMSL libraries within. Now I'm using Visual Studio 2010+Visual...
View ArticleCan I compile a program here that will run on a tablet?
I guess its a different operating system entirely, but is there a way to generate executable code herethat I can migrate over to a tablet? Or does that require a separate compiler I would have to...
View Articleifort-14.0 -cpp not referentially transparent
$ cat macro.F90 #define X_LT(a) (a < 3) #define X_GE(a) (!X_LT(a)) #if !X_LT(3) #warning no problem here #endif #if X_GE(3) #warning "syntax error" with ifort, not with gfortran #endif $ ifort -c...
View Article!$OMP SIMD or !DIR$ SIMD ?
Hi,I have two quick questions regarding using SIMD directives.(1) I am currently using !DIR$ SIMD to help the compiler to vectorize the loops. But I just noticed that in OpenMP 4.0 we have the...
View Articleifort 11.1 and O2 optimization: wrong results
Dear all,The code in question:!################## ! MODULE FOR TYPES !################## MODULE mod_types IMPLICIT NONE PRIVATE PUBLIC :: type_glob, type_geom, type_edge !------------- ! Type node...
View ArticleFormat label and Contains block
Hi all,i'm working on a main routine with many other subroutine in a contains block. In the main one, I defined some format labels but I can't use them in the contains block : they are no more defined....
View Article