gfortran -O1 -fno-underscoring -o fds5_gnu_mpi_32 isob.o prec.o smvv.o
cons.o devc.o type.o mesh.o func.o irad.o ieva.o pois.o radi.o evac.o
part.o vege.o ctrl.o turb.o dump.o hvac.o read.o mass.o wall.o fire.o
divg.o init.o velo.o pres.o mpip.o main.o
main.o:main.f90:(.text+0x57a): undefined reference to `mpi_allreduce_'
main.o:main.f90:(.text+0x5d4): undefined reference to `mpi_allreduce_'
main.o:main.f90:(.text+0x62b): undefined reference to `mpi_allreduce_'
...
The makefile looks like this:
gnu_mpi_32 : FFLAGS = -O1
gnu_mpi_32 : CFLAGS = -O1
gnu_mpi_32 : FCOMPL = gfortran
gnu_mpi_32 : CCOMPL = gcc
gnu_mpi_32 : obj = fds5_gnu_mpi_32
gnu_mpi_32 : $(obj_mpi)
$(FCOMPL) $(FFLAGS) -o $(obj) $(obj_mpi)
I've also tried to add -fno-underscoring to FFLAGS and -D pp_noappend
to CFLAGS which gives the same result but instead of the above error
message I get (no underscore):
main.o:main.f90:(.text+0x57a): undefined reference to `mpi_allreduce'
main.o:main.f90:(.text+0x5d4): undefined reference to `mpi_allreduce'
main.o:main.f90:(.text+0x62b): undefined reference to `mpi_allreduce'
...
Do be able to get this far I had to copy-paste add mpif.h into the
FDS_Source folder.
Does anyone know what is wrong and how I can get past this problem? I
tried to fiddle around a bit in the mpis.f90 file with no change in
result.
Joakim
Simo
On Feb 4, 3:19 pm, Kongzhu <joakim.sandst...@brandskyddslaget.se>
wrote:
I'll continue trying. If anyone has solved this please let me know.
Joakim