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
Beginner
1,739 Views
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 Solution
Anonymous66
Valued Contributor I
1,739 Views
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

View solution in original post

0 Kudos
5 Replies
Anonymous66
Valued Contributor I
1,740 Views
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
0 Kudos
cptfisher
Beginner
1,740 Views
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.
0 Kudos
IanH
Honored Contributor III
1,740 Views
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?


0 Kudos
cptfisher
Beginner
1,740 Views
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
0 Kudos
JVanB
Valued Contributor II
1,740 Views
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)
0 Kudos
Reply