I have a question about the PARDISO under Windows. I have written a fortran code which is to solve a very large sparse symmetric problem. And I used a subroutine to specify the parameters for PARDISO and solve the system. Following the demo given in the mkl folder, I included the mkl_pardiso.f90 file at the very beginning of the main program and also used the mkl_pardiso file. If I build the solution, it will give the following error message:
Error 1 Compilation Aborted (code 1).
And then if I comment out the mkl_pardiso.f90 inclusion, the error message disappears and the code can run without any further error and the solution results are correct. I also tried to clean the successfully built solution and keep the mkl_pardiso.f90 file commented out and then rebuild the solution. This time, there came more errors:
Error 3 error #6404: This name does not have a type, and must have an explicit type. [PT]
Error 2 error #6457: This derived type name has not been declared. [MKL_PARDISO_HANDLE]
Error 4 error #6458: This name must be the name of a variable with a derived type (structure type) [PT]
Error 1 error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MKL_PARDISO]
Error 5 Compilation Aborted (code 1)
So, the questions is why this happens and how can I correctly use the PARDISO in my subroutine? Any thoughts will be much appreciated.