Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Error 7002 - compiling module

cptfisher
Principiante
2.474 Vistas
Hello,

When trying to compile my program with modules in it I keep getting the following variation of the same error code:

error 7002: error in opening the compiled module file. Check INCLUDE paths. [FILENAME]
USE FILENAME

What do I need to do to fix it?
0 kudos
1 Solución
Anonymous66
Colaborador Valioso I
2.474 Vistas
Hello,

This error means the.mod file for the moduleFILENAME cannot be found.Modules need to be compiled before files that depend on the module is compiled. If you are using Visual Studio, it will do this automatically.

Annalee
Intel Developer Support

Ver la solución en mensaje original publicado

5 Respuestas
Anonymous66
Colaborador Valioso I
2.475 Vistas
Hello,

This error means the.mod file for the moduleFILENAME cannot be found.Modules need to be compiled before files that depend on the module is compiled. If you are using Visual Studio, it will do this automatically.

Annalee
Intel Developer Support
cptfisher
Principiante
2.475 Vistas
Hi,

Thanks for your reply and help. I've compiled most of the modules but now I get the following errors for one:

error 7113: Each ac-value expression in an array-constructor must have the same type and type parameters. [HH] Position =

error 6633: The type of the actual argument differs from the type of the dummy argument [0.03]
PRP = SAT

Any idea on how to fix these is appreciated.
IanH
Colaborador Distinguido III
2.475 Vistas
I presume '<' == '(' and '>' == ')'.

The type and kind (probably) of HH doesn't match the type and kind of the 0.0 constants - they are default real. How is HH declared? You may need to add a kind qualifier to the constants - 0.0_8 or similar, to match however HH is declared; or you will need to convert HH to be default real ( REAL(HH) ).

Similarly the type and kind of 0.03 (again, default real) doesn't match the relevant dummy argument of the SAT function. What do the dummy arguments of SAT look like?


cptfisher
Principiante
2.475 Vistas
The dummy arguments for the SAT function look like:
REAL(ReKi) :: SAT
REAL(ReKi),INTENT(IN) :: SLOPE
REAL(ReKi),INTENT(IN) :: VAL
REAL(ReKi),INTENT(IN) :: X

HH is delcared as follows:
REAL(ReKi) :: HH

The (ReKi) is the precision type
JVanB
Colaborador Valioso II
2.475 Vistas
You can fix the array constructor via:

Position = [0.0_ReKi, 0.0_ReKi, HH]

or

Position = [REAL(ReKi) :: 0, 0, HH]

or maybe

Position = [REAL(KIND(HH)) :: 0, 0, HH]

The function invocation I would fix as:

PRP = SAT(PRP, 0.03_ReKi, 0.1_ReKi)
Responder