Welcome, Guest
Username: Password: Remember me

TOPIC: Error: Can't open included file 'mpif.h'

Error: Can't open included file 'mpif.h' 13 years 6 days ago #3063

Hi,

I'm installing TELEMAC on a Ubuntu 64 bit and I have this error:

gfortran -c -O3 -ffixed-line-length-132 -fconvert=big-endian -frecord-marker=4 -I /home/luca/telemac_svn/parallel/parallel_v6p1/ubugfortrans -I /home/luca/telemac_svn/bief/bief_v6p1/ubugfortrans -I /home/luca/telemac_svn/special/special_v6p1/ubugfortrans -I /home/luca/telemac_svn/telemac2d/tel2d_v6p1/ubugfortrans p_exit.f
p_exit.f:46: Error: Can't open included file 'mpif.h'

Any suggestion?
Thank you very much,

Luca
The administrator has disabled public write access.

Re: Error: Can't open included file 'mpif.h' 13 years 6 days ago #3065

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
something missing in your configuration for parallel compilation.
mpif.h is an mpi file so you should check that mpi is well installed on your computer and the chek in the systel configuration and/or in the parallel makefile that the path to mpif.h is ok

Hope this helps
Christophe
The administrator has disabled public write access.

Re: Error: Can't open included file 'mpif.h' 13 years 6 days ago #3066

Hi,

thanks for the reply.

I've contolled in the directory /usr/lib/openmpi/include/ and the file mpif.h is present.
Then I've opened the file systel.cis.ubuntu.cfg and the line
incs_parallel: -I /usr/lib/openmpi/include/
is also present...

So I can't understand were I'm wrong!
:(
Luca
The administrator has disabled public write access.

Re: Error: Can't open included file 'mpif.h' 13 years 6 days ago #3067

Sorry, where can Ifind the parallel makefile in which I have to set the path?
thanks
The administrator has disabled public write access.

Re: Error: Can't open included file 'mpif.h' 13 years 6 days ago #3069

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
You seem to be using the python version (good job!) and thus there is no makefiles.

Your problem seems to come from the configuration. If you look closely at your first error, you have "ubugfortrans". I am guesing this is the default setup for scalar mode.

You have probably modyfied the ubugfortranp to have the line on incs_parallel: -I /usr/lib/openmpi/include/

You therefore need to call that configuration. You can just double check the installation procedure in Documentation / Installations / python version, but in short, you can use the -c ubugfortranp option to switch from one configuration to the other (assuming you have several configurtaions stored in your systel.cfg)

Hope this helps.
Sébastien.
The administrator has disabled public write access.

Re: Error: Can't open included file 'mpif.h' 13 years 6 days ago #3073

I'll try soon and let you know.
thank you!

Luca
The administrator has disabled public write access.

Re: Error: Can't open included file 'mpif.h' 13 years 2 days ago #3101

  • ails
  • ails's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 17
Hello,

People using the Perl environment on Linux may have the same issue.
It can be solved by :
- using FC_OPT_INCLUDE in the systel.ini file with : FC_OPT_INCLUDE="-I/usr/lib/openmpi/include -I"
- giving the absolute path to mpif.h in the Parallel makefile

Regards,

Fabien
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.