From 9e3b3cb27db4c78ed3f8ef3129851b128e937062 Mon Sep 17 00:00:00 2001 From: Sean Bryan Date: Mon, 18 Dec 2023 16:24:00 +1100 Subject: [PATCH] Fix bitwise reproducibility for serial and mpi --- src/offline/Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/offline/Makefile b/src/offline/Makefile index 406c74c29..34098ecc8 100644 --- a/src/offline/Makefile +++ b/src/offline/Makefile @@ -172,11 +172,16 @@ SUPPRESS_FLAGS := -warn nostderrors -diag-disable 10145 # default target by convention is ``all'' all: serial -serial: cable_driver.o common - $(FC) $(CFLAGS) $(SUPPRESS_FLAGS) $(LDFLAGS) $(LD) -o $(PROG_SERIAL) $(shell ls *.o) $(CINC) - -mpi: cable_mpidrv.o cable_mpicommon.o pop_mpi.o cable_mpiworker.o cable_mpimaster.o common - $(FC) $(CFLAGS) $(SUPPRESS_FLAGS) $(LDFLAGS) -o $(PROG_MPI) $(shell ls *.o) $(CINC) $(LD) +serial: cable_driver.F90 common + $(FC) $(SUPPRESS_FLAGS) $(CFLAGS) $(LDFLAGS) $(LD) -o $(PROG_SERIAL) $< $(shell ls *.o) $(CINC) + +mpi: FOBJS = $(shell ls *.o) +mpi: cable_mpidrv.F90 cable_mpicommon.F90 pop_mpi.F90 cable_mpiworker.F90 cable_mpimaster.F90 common + $(FC) $(SUPPRESS_FLAGS) $(CFLAGS) $(LDFLAGS) -c cable_mpicommon.F90 $(CINC) + $(FC) $(SUPPRESS_FLAGS) $(CFLAGS) $(LDFLAGS) -c pop_mpi.F90 cable_mpicommon.o $(CINC) + $(FC) $(SUPPRESS_FLAGS) $(CFLAGS) $(LDFLAGS) -c cable_mpiworker.F90 cable_mpicommon.o pop_mpi.o $(CINC) + $(FC) $(SUPPRESS_FLAGS) $(CFLAGS) $(LDFLAGS) -c cable_mpimaster.F90 cable_mpicommon.o cable_mpiworker.o pop_mpi.o $(CINC) + $(FC) $(SUPPRESS_FLAGS) $(CFLAGS) $(LDFLAGS) -o $(PROG_MPI) cable_mpidrv.F90 cable_mpicommon.o cable_mpimaster.o cable_mpiworker.o pop_mpi.o $(FOBJS) $(CINC) $(LD) # dependencies, compilation rules for ALL files needed for "all" (LSRC) #================================================================