[FLASH-USERS] gfortran and mpif.h

Wu, Xingfu xingfu.wu at anl.gov
Mon Jun 1 09:36:58 EDT 2020


This is the MPI environment setting issue. When you install it, you may run its tests to make sure the proper installation. One simple way for your issue is to copy the mpif.h to object folder. It may solve the issue.

Thanks,
Xingfu

On Jun 1, 2020, at 8:17 AM, Kurt Williams <kurt.williams at research.uwa.edu.au> wrote:


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



<makefile.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20200601/5f09162f/attachment-0001.htm>


More information about the flash-users mailing list