Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
2 Views

Poisson Solver in Fortran

I am trying to use the Poisson Solver with the  sample "d_Laplace_2D.f90". I include the MKL_DFTI.90, which is referenced. The error I received was as follows:

Severity    Code    Description    Project    File    Line    Suppression State
Error        error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [MKL_DFT_TYPE]        C:\PROGRA~2\INTELS~1\COMPIL~1.207\windows\mkl\include\MKL_DFTI.F90    228    

 MKL_DFT_TYPE is a module inside the file MLK_DFTI.90 , so why would I receive an error and have to check INCLUDE paths.. 

 

Regards

Jason

0 Kudos
1 Reply
Highlighted
Valued Contributor II
2 Views

What do you mean by "I

What do you mean by "I include the MKL_DFTI.90"? I looked at the source code of these examples and it is simply referred to as a module - the comment in d_laplace_2d.f90 is misleading. Fortran has an INCLUDE statement, but that does something completely different than the USE statement.

What you need to do is:

  • Compile the various source files, mkl_dfti.f90, mkl_poisson.f90 etc first
  • Compile d_laplace_2d.f90 and link the program together with its dependendies

There are several ways to do that:

  • Via the sample makefile in the examples collection
  • By setting up a solution/project that contains all of these files

The first is the fastest way forward, the second the most instructive.

Regards,

Arjen

 

0 Kudos