- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
I am using somebody else's solver, which I copied on my machine as is. After linking the correct libraries, I am getting this error for an include file:
mpif90 -c poisson_hypre.F90 poisson_hypre.F90 -O2 -fpp -I/myHomeDir/Codes/OpposedJet//lib/hypre//include/
poisson_hypre.F90(21): error #5102: Cannot open include file 'HYPREf.h'
The file HYPREf.h is in that directory, and I have even changed its permissions with `chmod 777 HYPREf.h` but that did not change anything. I checked with the code's author and everything is working for him under the same conditions.
Any suggestions?
- Balises:
- Intel® Fortran Compiler
Lien copié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
In your command line, is that an uppercase "I" or a lowercase "L" ? It should be an uppercase "I"
From the same directory as your source file, can you successfully issue this command:
ls -l /myHomeDir/Codes/OpposedJet//lib/hypre//include/HYPREf.h
(that's lowercase "L" both for "ls" and for "-l" :-) )
--Lorri
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
In my command line, it is a uppercase "i".
Here is the output of the following command:
ls -l /myHomeDir/Codes/OpposedJet/lib/hypre/include/HYPREf.h
-rw-r--r-- 1 my_user_name group_name 1858 Sep 2 13:55 /my_home_dir/Codes/MPIcode/OpposedJet/lib/hypre/include/HYPREf.h
I previously mentioned that I changed the permission on the 'HYPREf.h' file with the chmod -777 command. I have now reverted it to its original permission.
Solal
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
In your original post, in the command line, you list the same file twice ... is that what you are actually doing, or is that a typo in creating this post?
If you actually have the same file twice, perhaps the include file is being "locked" by the first compilation.
If you do not have the same file twice, let's try replacing "mpif90" with "ifort". It will still fail to compile because it won't find the MPI mod or include files, but maybe it will find your .h file?
--Lorri
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable