Fortran DLL - incorrect array size
Dear Steve and Fortran Masters,I have a Fortran DLL called from C++ that is used in a chemical process simulator. The subroutines / functions in the DLL are normally called millions of times during the...
View ArticleGeneric subroutine for various types of input arguments
Hi,I have a subroutine that receives a vector and rearranges its elements according to "mapping" vector. So for example the 1st element becomes 3rd, etc. This is done on integer, double, and double...
View ArticleHow to import a DLL into a Microsoft Visual Studio Fortran Project?
Hello,I am having problems importing a DLL into my current Fortran project. The DLL file I am trying to import, fdlltest.dll, has the following functions defined when I do dumpbin...
View Articleintel fortran MAC OSX 10.11
hi i was usinig mac osx 10.10.5 and intel compiler fortran 2015 and everything worked just fine , after updating to mac osx 10.11 when i use ifort in terminal it says " command not found " but gfortran...
View ArticleNamelist problem
HelloII use the namelist to save the data to a file. If some variables in the namelist change places or if a new variable is added to the namelist, there is no problem when data are reading from the...
View ArticleOpenMP: initialize Threadprivate
Dear folks, let's suppose to have this FORTRAN module:MODULE MyUtility IMPLICIT NONE REAL*8, ALLOACATABLE(:,:) :: r INTEGER :: i1, i2, i3, i3 REAL*8 :: r1,r2,r3 CONTAINS SUBROUTINE work(x,y) REAL*8 ::...
View Articlevectorization of short array constructor
forall(i=1:n/2) a(i*2-1:i*2)= b(i)+ [c(i),e(i)] *d(i)generates efficiently vectorized code with current gfortran, but ifort says there is a dependency which prevents vectorization, regardless of...
View Articleexplain error code 151
I get error code 151 when trying to allocate an array.I have -traceback, but still don't get any further info.In another thread, I saw 151 being associated with allocatingan array that is already...
View ArticleAdvance in Coarray Fortran (PGAS) Programming
Hi everybody, this is just to shortly share information about the current status of advancing in our Coarray Fortran programming (task-based MPMD-like parallel software development in serial Fortran...
View Articleassume_aligned not recognised by compiler
Hi all,I am getting the following remark while compiling.remark #7867: This directive is misplaced or not supported on this platform. !dir$ assume_aligned pnm : 64Here pnm is an array of dimensions...
View ArticleConverting a character variable to a real variable
Please,Someone could explain me how to convert a character variable get from an edit box to a real variable, using just a command? I am developing a Win32 program.Thank you in advance.Carlos Santos
View ArticleSetting text to an edit control box in Win32 API (Fortran)
Hello everybody,I am presently working on a simple Win32 application in Visual Fortran which launches an external program, takes the results of calculations and then displays the data on the child...
View ArticleImproving performance
I developed a Fortran 77 program which is over 10,000 lines long and performs general engineering calculations and matrix computations. As an example, for a specific problem I am working on, the...
View ArticleICE with OpenMP workshare construct
Hello,the following code leads to an internal compiler error:module ifc_openmp_workshare_bug implicit none type t real, pointer :: u(:,:) end type t contains subroutine sub (z, x, y) real, intent(out)...
View ArticleData in Array Constructor using multiplier has error
Can anyone help? I cannot get the array constructor data values to compile when using a multiplier on a constant.This is an f77 conversion. Using MS VS 2003 and Intel V9. The array used to look like:...
View ArticleDebbuger Installation Failure
I used the parallel_studio_xe_2016_composer_edition_for_fortran_setup.exe installer. During installation the message "The Intel(R) Debugger Extension for Intel(R) MIC Architecture cannot be installed....
View Articleporting old code, finding functions
I'm porting over some old f77 code from another platform, and trying to figure out how to deal with some old function calls.I'm getting 'undefined reference to' errors with the functions dgesl and...
View ArticleArray Declaration
Hi All,For a Fortran array, Is there any compiler specific parameter to set the array lower bound to zero? Because Linux considers the lower bound as one always.
View Articlelink error
Bonjour Fortran fellows,My projects used to link and work fine. Then suddenly I get the following error.So I go to "project properties", change the default libs, try again, most of the times it does...
View ArticleQuestion on optimization directive IVDEP
Hello,consider the code:module ifc_ivdep_test contains subroutine sub1 (z, x, y) real, intent(out) :: z(:) real, intent(in) :: x(:) real, intent(in) :: y(:) !dir$ ivdep z = x * y ! OK end subroutine...
View Article