921 questions
1
vote
1
answer
77
views
Type-bound procedure for parameterized derived type
Could you tell me how to write type-bound procedures for parameterized types?
For example:
module parameters
type :: sinx (kind)
integer, kind :: kind=4
real(kind) :: x
contains
procedure,...
0
votes
0
answers
86
views
library handle in fortran
I have a fortran dll/so which needs to know its own programhandle.
On windows, I can obtain the handle from the DLLMain routine:
integer(4) function DllMain(hInst, ul_reason_being_called, lpReserved)
...
0
votes
1
answer
141
views
ifx "ignoring unknown option '/version'
I am using Visual Studio 2022 with Intel OneAPI (Base + HPC) to try and create a Fortran program in Windows 11. I'm having a few issues compiling which I'm troubleshooting, but I'm stumped that ifx ...
1
vote
0
answers
360
views
How to switch the compiler from IFORT to IFX in Visual Studio 2022
I am working on an existing project with multiple collections of routines, and each collection is compiled with IFORT. Compiler messages are telling me IFORT is deprecated as of late 2024, so I would ...
0
votes
1
answer
180
views
Fortran - Syntax error, found END-OF-STATEMENT [duplicate]
Intel fortran compiler (2024.2.0.633), Visual Studio 2022, 32bit. Compiling .for files from very old fortran routines.
Code did not copy well into code tags, so I pasted an image.
Problem:
C:\Users\...
1
vote
0
answers
142
views
Ifx cannot find modern generic MKL routines like GEMM_F95
I am compiling Fortran code with the ifx compiler (version 2025.0.4) on Windows. I have the Intel MKL library downloaded as well and I am trying to compile a program using it, like this:
ifx test.f90 ...
0
votes
0
answers
24
views
How to link Abaqus to MATLAB libraries?
I am currently working on writing a UMAT subroutine. In one part of the code, I need to solve a system of linear equations. Initially, I used Fortran libraries such as LAPACK and PARDISO for solving ...
0
votes
0
answers
39
views
Initialize the global matrix to a single process, and then distribute to the process grid to use ScaLAPACK rouines
I am working on a problem, and I need to use ScaLAPACK library to optimize the computations. I have to deal with large numerical problems, where the number of states nst>20000, therefore the ...
0
votes
1
answer
183
views
How to solve LNK4098 warning, libcmt.lib conflicts with libraries? and subsequent erroneous results
I need to produce a static .exe to distribute to users that have no VisualStudio, no Intel Fortran/oneAPI, and no MKL.
My code "UgensTester.f90" worked fine since 2010 with yearly updates, ...
0
votes
0
answers
155
views
Using IFX getting Error Opening Source File message
I'm debugging my Fortran files recently changing from ifort to ifx, then I got a weird problem.
Every time jumping from a subroutine to another subroutine, I get the error shown in the picture, but ...
0
votes
0
answers
66
views
Undefined references when linking Fortran object to C compiler with Intel MPI and Intel compilers
I inherited a rather large project that I am trying to get to compile (it's a bit old, maybe 10 years). I am trying to use new intel compilers with intel mpi on Ubuntu WSL.
There are some C modules ...
1
vote
0
answers
73
views
Why is my file io working correctly in gfortran, nvfortran, flang, but not ifort? [duplicate]
I am working on a Fortran95 solution to Project Euler problem 22. I have it working correctly in the three complilers listed in the title, but for some reason the array labelled names is filled ...
0
votes
0
answers
29
views
Accessing a position that does not exist [duplicate]
I am using intel fortran and could not figure out why I don't get an error when accessing a position in a matrix that doesn't exist.
I have a matrix umf3 with dimensions (36,6, 3,960,15). If I print ...
2
votes
1
answer
89
views
storing a procedure pointer within a type in Fortran
I would like to store a pointer to a function as an attribute w/in a type. But the compiler complains that the first argument to the function ought to be the type (like the self or this argument in ...
0
votes
0
answers
319
views
OneApi 2021 with Visual Studio 2019 not working in 1 out of 6 pcs (Windows 11 in all)
I need to use OneAPI 2021 and VS2019 because the huge fortran model I am using only compiles on those, not more recent versions. I have the OneAPI 2021 and vs2019 installers. I have a procedure that ...
1
vote
1
answer
290
views
Force ifort to ignore the error #6633: The type of the actual argument differs from the type of the dummy argument
I am trying to compile this Fortran code using ifort (version 2022.1.0). I am getting an error:
error #6633: The type of the actual argument differs from the type of the dummy argument.
I already ...
0
votes
0
answers
92
views
Why print can change the Fortran results?
It is a rather simple but frustrating question. I have written UMAT with ABAQUS, and part codes are as follows,
macro_strain(:) = 0
macro_strain(1:3) = DSTRAN
!print * , '...
0
votes
0
answers
68
views
Fortran with MPI: resample with replacement
I want to use Fortran with MPI to do the resample with replacement on an array DATA(10^7). I want to do 1000 times resample with replacement, and plan to split these 1000 tasks across 10 processors.
...
1
vote
0
answers
657
views
Problem to connect Intel API Fortran Compiler with Visual Studio 2022
For my work I am compiling Fortran code in Visual Studio. Since I updated Visual Studio to the latest version (17.9.6), I can't access my code anymore.
I already updated the Intel Base kit and HPC kit ...
1
vote
0
answers
101
views
how to automatically generate a Module from a project in Visual Studio
I work with Fortran projects in VS2019. My projects employ many subroutines. I've been advised to put the subroutines into a MODULE to get more help from the debugger and code check. Copying the names ...
0
votes
2
answers
87
views
Different floating point representations of identical 64 bit double precision numbers
I have some Fortran code which forms a handle from the bit-pattern of a structure. It marks two structures as identical when the handle of each is the same.
I am getting different handles for two ...
0
votes
0
answers
70
views
Outout is affected for some weird silly reaons (print command as well as silly declaration of array)
I am new to this community. I am using ifort compiler for my abaqus subroutine. I was using it effortlessly until the last 2 weeks I have been struggling a lot! It is just that my output is affected ...
0
votes
1
answer
170
views
why is there "WindowsSdkDir" not found warnings when I run ifort compiler from cmd prompt in visual studio
I was using visual studio 2008 with parallel studio xe2011 to do fortran code, sometimes I also use visual studio 2022 community version. I set the cmd prompt for ifort compiler in External Tools and ...
1
vote
0
answers
170
views
ifort command-line vs Visual Studio (assumed shape array)
Recently I encountered the following issue:
I made this very simple program in Visual Studio Enterprise 2022, Intel® Fortran Compiler Classic 2021.10.0, Windows 10:
program test
implicit none
...
0
votes
1
answer
332
views
Fortan subroutine warning in Abaqus (warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators)
I am facing a problem running this specific subroutine cdpm2vumat.f in abaqus. The job log file shows this error.
cdpm2vumat.f(677): remark #8291: Recommended relationship between field width 'W' and ...