Skip to content

Commit

Permalink
Fix bitwise reproducibility for serial and mpi
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanBryan51 committed Dec 18, 2023
1 parent 2f17c07 commit 9e3b3cb
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/offline/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
#================================================================
Expand Down

0 comments on commit 9e3b3cb

Please sign in to comment.