[FLASH-USERS] gfortran and mpif.h
John.Hearns at dell.com
John.Hearns at dell.com
Mon Jun 1 12:06:07 EDT 2020
Hello Kurt.
I am not an expert in Flash.
As Xingfu has said this is a problem related to the environment setup with mpich
Specifically it will be the INCLUDEDIR
But first have a look here:
https://fedora.pkgs.org/30/fedora-x86_64/mpich-3.2.1-9.fc30.i686.rpm.html
This build also include support for using the 'module environment' to select
which MPI implementation to use when multiple implementations are installed.
If you want MPICH support to be automatically loaded, you need to install the
mpich-autoload package.
I would learn about using the Modules environment.
All you have to do to set up the environment correctly if you use modules is
module load mpich
make
Actually that README does say that if you install mpich-autoload you will get it loaded automatically.
I would still use Modules though as it gives you flexibility to use different MPI implementations
https://pkgs.org/download/environment(modules)
Let me know if I can be of help with getting Modules installed.
In Redhat derived distros, and I think on Debian also, there is an 'mpi-selector' tool which I used
to swap between the installed MPIs. I would still use Modules though.
From: flash-users-bounces at flash.uchicago.edu <flash-users-bounces at flash.uchicago.edu> On Behalf Of Kurt Williams
Sent: 01 June 2020 14:17
To: flash-users at flash.uchicago.edu
Subject: [FLASH-USERS] gfortran and mpif.h
[EXTERNAL EMAIL]
Hello all,
Thank you in advance for your assistance - and apologies in if this has been answered before.
I've been having trouble configuring FLASH for my first use. I'm using the latest (stable) Fedora build and have installed mpich, hdf5, NetCDF and the GCC using the yum installer.
I have attempted to run the Sedov code as described in the documentation, but am having trouble when trying to make it. Apparently I'm missing a mpif.h file. Specifically I am getting the error:
$ make
rm -f reorder.sh
/usr/lib64/mpich/gfortran -ggdb -c -O2 -fdefault-real-8 -fdefault-double-8 -Wuninitialized -DMAXBLOCKS=1000 -DNXB=8 -DNYB=8 -DNZB=1 -DN_DIM=2 local_tree.F90
local_tree.F90:185: Error: Can't open included file 'mpif.h'
make: *** [Makefile:116: local_tree.mod] Error 1
Trying to use "rpm -ql mpich" to find all the mpi files has turned up nothing referencing mpif.h or mpif90, and swapping gfortran for mpif90 in the makefile doesn't seem to fix it, either.
I have attached my makefile as a txt, in case it could shed light on the issue.
If anyone has any advice, I'd be extremely appreciative.
Thank you,
Kurt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20200601/82f40829/attachment-0001.htm>
More information about the flash-users
mailing list