diff --git a/Makefile b/Makefile deleted file mode 100644 index 1f5a9828b..000000000 --- a/Makefile +++ /dev/null @@ -1,262 +0,0 @@ -#****************************************************************************** -# -# Unit Name : Makefile -# Unit Type : makefile -# Project : SWIFTEST -# Package : N/A -# Language : GNU makefile syntax -# -# Description : Controls, via the make program, the building of the Swifter -# modules, library, drivers, and tools, as well as initiating -# the build of the FXDR library by means of its own makefile -# -# Input -# Arguments : Zero or more of the following targets: -# (1) all : builds modules, entire Swifter library, FXDR -# library, Swifter drivers and tools -# (2) mod : builds modules -# (3) lib : builds entire Swifter library -# (4) fastdir : compiles local directory source and adds the -# resulting objects to the Swifter library -# (5) drivers : builds Swifter drivers -# (6) tools : builds Swifter tools -# (7) bin : compiles local directory source and installs -# resulting executables to $(SWIFTEST_HOME)/bin -# (8) clean : removes all soft links to Makefile and -# Makefile.Defines from subdirectories of -# $(SWIFTEST_HOME), removes the entire contents -# of $(SWIFTEST_HOME)/lib and $(SWIFTEST_HOME)/bin, -# and removes the include file installed by the -# FXDR makefile -# Terminal : none -# File : Makefile.Defines -# -# Output -# Arguments : none -# Terminal : status messages -# File : none -# -# Invocation : make [all|mod|lib|fastdir|drivers|tools|bin|clean] -# -# Notes : The use of the above arguments as phony targets inside the -# makefile precludes their use as base names of Swifter drivers -# or tools -# -#****************************************************************************** - -SWIFTEST_MODULES = swiftest_globals.f90 \ - swiftest_operators.f90 \ - lambda_function.f90\ - swiftest_classes.f90 \ - encounter_classes.f90 \ - fraggle_classes.f90 \ - whm_classes.f90 \ - rmvs_classes.f90 \ - helio_classes.f90 \ - symba_classes.f90 \ - walltime_classes.f90 \ - swiftest.f90 - - -include Makefile.Defines - -MODULES = $(SWIFTEST_MODULES) $(USER_MODULES) - -.PHONY : all mod fast strict drivers bin clean force - -% : %.f90 force - $(FORTRAN) $(FFLAGS) $(INCLUDES) $< -o $@ \ - -L$(SWIFTEST_HOME)/lib $(LINKS) - $(INSTALL_PROGRAM) $@ $(SWIFTEST_HOME)/bin - rm -f $@ - -all: - cd $(SWIFTEST_HOME); \ - make mod; \ - make fast; \ - make strict; \ - make drivers; \ - -mod: - cd $(SWIFTEST_HOME)/src/modules/; \ - $(FORTRAN) $(FFLAGS) $(INCLUDES) -c $(MODULES); \ - $(AR) rv $(SWIFTEST_HOME)/lib/libswiftest.a *.o; \ - $(INSTALL_DATA) *.mod *.smod $(SWIFTEST_HOME)/include; \ - rm -f *.o *.mod *.smod - -fast: - cd $(SWIFTEST_HOME)/src/discard; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make fastdir - cd $(SWIFTEST_HOME)/src/drift; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make fastdir - cd $(SWIFTEST_HOME)/src/encounter; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make fastdir - cd $(SWIFTEST_HOME)/src/fraggle; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make fastdir - cd $(SWIFTEST_HOME)/src/gr; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make fastdir - cd $(SWIFTEST_HOME)/src/helio; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make fastdir - cd $(SWIFTEST_HOME)/src/io; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make fastdir - cd $(SWIFTEST_HOME)/src/netcdf; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make fastdir - cd $(SWIFTEST_HOME)/src/obl; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make fastdir - cd $(SWIFTEST_HOME)/src/operators; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make fastdir - cd $(SWIFTEST_HOME)/src/orbel; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make fastdir - cd $(SWIFTEST_HOME)/src/rmvs; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make fastdir - cd $(SWIFTEST_HOME)/src/setup; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make fastdir - cd $(SWIFTEST_HOME)/src/symba; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make fastdir - cd $(SWIFTEST_HOME)/src/tides; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make fastdir - cd $(SWIFTEST_HOME)/src/user; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make fastdir - cd $(SWIFTEST_HOME)/src/util; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make fastdir - cd $(SWIFTEST_HOME)/src/walltime; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make fastdir - cd $(SWIFTEST_HOME)/src/whm; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make fastdir - -strict: - cd $(SWIFTEST_HOME)/src/kick; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make strictdir - cd $(SWIFTEST_HOME)/src/helio; \ - $(FORTRAN) $(FSTRICTFLAGS) $(INCLUDES) -c helio_kick.f90; \ - $(AR) rv $(SWIFTEST_HOME)/lib/libswiftest.a *.o *.smod; \ - $(INSTALL_DATA) *.smod $(SWIFTEST_HOME)/include; \ - rm -f *.o *.smod - cd $(SWIFTEST_HOME)/src/symba; \ - $(FORTRAN) $(FSTRICTFLAGS) $(INCLUDES) -c symba_kick.f90; \ - $(AR) rv $(SWIFTEST_HOME)/lib/libswiftest.a *.o *.smod; \ - $(INSTALL_DATA) *.smod $(SWIFTEST_HOME)/include; \ - rm -f *.o *.smod - cd $(SWIFTEST_HOME)/src/rmvs; \ - $(FORTRAN) $(FSTRICTFLAGS) $(INCLUDES) -c rmvs_kick.f90; \ - $(AR) rv $(SWIFTEST_HOME)/lib/libswiftest.a *.o *.smod; \ - $(INSTALL_DATA) *.smod $(SWIFTEST_HOME)/include; \ - rm -f *.o *.smod - cd $(SWIFTEST_HOME)/src/whm; \ - $(FORTRAN) $(FSTRICTFLAGS) $(INCLUDES) -c whm_kick.f90; \ - $(AR) rv $(SWIFTEST_HOME)/lib/libswiftest.a *.o *.smod; \ - $(INSTALL_DATA) *.smod $(SWIFTEST_HOME)/include; \ - rm -f *.o *.smod - -fastdir: - $(FORTRAN) $(FFLAGS) $(INCLUDES) -c *.f90; \ - $(AR) rv $(SWIFTEST_HOME)/lib/libswiftest.a *.o *.smod; \ - $(INSTALL_DATA) *.smod $(SWIFTEST_HOME)/include; \ - rm -f *.o *.smod - -strictdir: - $(FORTRAN) $(FSTRICTFLAGS) $(INCLUDES) -c *.f90; \ - $(AR) rv $(SWIFTEST_HOME)/lib/libswiftest.a *.o *.smod; \ - $(INSTALL_DATA) *.smod $(SWIFTEST_HOME)/include; \ - rm -f *.o *.smo - -drivers: - cd $(SWIFTEST_HOME)/src/main; \ - rm -f Makefile.Defines Makefile; \ - ln -s $(SWIFTEST_HOME)/Makefile.Defines .; \ - ln -s $(SWIFTEST_HOME)/Makefile .; \ - make bin - -bin: *.f90 - make $(basename $^) - -clean: - cd $(SWIFTEST_HOME)/src/modules; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/discard; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/drift; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/encounter; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/fraggle; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/gr; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/helio; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/io; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/kick; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/main; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/netcdf; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/obl; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/operators; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/orbel; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/rmvs; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/setup; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/symba; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/tides; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/user; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/util; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/walltime; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/src/whm; rm -f Makefile.Defines Makefile *.gc* - cd $(SWIFTEST_HOME)/bin; rm -f swiftest_* - cd $(SWIFTEST_HOME)/bin; rm -f tool_* - cd $(SWIFTEST_HOME)/lib; rm -f lib* - cd $(SWIFTEST_HOME)/include; rm -f *.mod *.smod - cd $(COLLRESOLVE_HOME); rm -rf autom4te.cache aux Makefile stamp-h1 configure config.status config.h config.log aclocal.m4 lib* *.in *.o *.lo cambioni2019/*.o cambioni2019/*.lo - -force: diff --git a/Makefile.Defines b/Makefile.Defines deleted file mode 100644 index c73eb3910..000000000 --- a/Makefile.Defines +++ /dev/null @@ -1,84 +0,0 @@ -#****************************************************************************** -# -# Unit Name : Makefile.Defines -# Unit Type : makefile -# Project : SWIFTEST -# Package : N/A -# Language : GNU makefile syntax -# -# Description : Contains user-modifiable macro definitions used in the build -# process for the Swifter library, drivers and tools, as well as -# the FXDR library -# -# Input -# Arguments : none -# Terminal : none -# File : none -# -# Output -# Arguments : none -# Terminal : none -# File : none -# -# Invocation : include Makefile.Defines (from within another makefile) -# -# Notes : -# -#****************************************************************************** - -# System utilities - -SHELL = /bin/sh -AR = ar -RANLIB = ranlib -INSTALL = install -INSTALL_PROGRAM = $(INSTALL) -m 755 -INSTALL_DATA = $(INSTALL) -m 644 -ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) -# Swifter definitions - -SWIFTEST_HOME = $(ROOT_DIR) -USER_MODULES = -COLLRESOLVE_HOME = $(ROOT_DIR)/collresolve/ - -# Compiler definitions - -# DO NOT include in FFLAGS the "-c" option to compile object only -# this is done explicitly as needed in the Makefile -IDEBUG = -O0 -init=snan,arrays -nogen-interfaces -no-pie -no-ftz -fpe-all=0 -g -traceback -mp1 -qopt-matmul -fp-model strict -fpe0 -debug all -align all -pad -ip -prec-div -prec-sqrt -assume protect-parens -CB -no-wrap-margin -STRICTREAL = -fp-model=precise -prec-div -prec-sqrt -assume protect-parens -SIMDVEC = -simd -xhost -align all -assume contiguous_assumed_shape -vecabi=cmdtarget -fp-model no-except -fma -PAR = -qopenmp -HEAPARR = -heap-arrays 4194304 -OPTREPORT = -qopt-report=5 -IPRODUCTION = -no-wrap-margin -O3 -qopt-prefetch=0 -qopt-matmul -sox $(PAR) $(SIMDVEC) #$(HEAPARR) - -#gfortran flags -GDEBUG = -g -Og -fbacktrace -fbounds-check -ffree-line-length-none -GPAR = -fopenmp -ftree-parallelize-loops=4 -GMEM = -fsanitize-address-use-after-scope -fstack-check -fsanitize=bounds-strict -fsanitize=undefined -fsanitize=signed-integer-overflow -fsanitize=object-size -fstack-protector-all -GWARNINGS = -Wall -Warray-bounds -Wimplicit-interface -Wextra -Warray-temporaries -GPRODUCTION = -O3 -ffree-line-length-none $(GPAR) - -INCLUDES = -I$(SWIFTEST_HOME)/include -I$(NETCDF_FORTRAN_HOME)/include -I$(MKLROOT)/include -LINKS = -L$(MKLROOT)/lib/intel64 -L$(NETCDF_FORTRAN_HOME)/lib -lswiftest -lnetcdf -lnetcdff -qopt-matmul $(PAR) - -FSTRICTFLAGS = $(IPRODUCTION) $(STRICTREAL) -FFLAGS = $(IPRODUCTION) -fp-model=fast - -FORTRAN = ifort -AR = xiar -CC = icc - -#FORTRAN = gfortran -#FFLAGS = $(GDEBUG) $(GMEM) #$(GPAR) -#FSTRICTFLAGS = $(GDEBUG) $(GMEM) #$(GPAR) -#AR = ar -#CC = cc - -# DO NOT include in CFLAGS the "-c" option to compile object only -# this is done explicitly as needed in the Makefile - -CFLAGS = -O3 -w -m64 -std=c99 - -64_BIT_REALS = -r8 diff --git a/Makefile.Defines_example b/Makefile.Defines_example deleted file mode 100644 index b21710254..000000000 --- a/Makefile.Defines_example +++ /dev/null @@ -1,90 +0,0 @@ -#****************************************************************************** -# -# Unit Name : Makefile.Defines -# Unit Type : makefile -# Project : SWIFTER -# Package : N/A -# Language : GNU makefile syntax -# -# Description : Contains user-modifiable macro definitions used in the build -# process for the Swifter library, drivers and tools, as well as -# the FXDR library -# -# Input -# Arguments : none -# Terminal : none -# File : none -# -# Output -# Arguments : none -# Terminal : none -# File : none -# -# Invocation : include Makefile.Defines (from within another makefile) -# -# Notes : -# -#****************************************************************************** - -# System utilities - -SHELL = /bin/sh -AR = ar -RANLIB = ranlib -INSTALL = install -INSTALL_PROGRAM = $(INSTALL) -m 755 -INSTALL_DATA = $(INSTALL) -m 644 - -# Swifter definitions - -SWIFTER_HOME = # Full path to your Swifter directory goes here -USER_MODULES = - -# Compiler definitions - -# DO NOT include in FFLAGS the "-c" option to compile object only -# this is done explicitly as needed in the Makefile - -#FORTRAN = ifort -#FFLAGS = -O3 -openmp -132 -align all -pad -ip -fp-model strict -prec-div -prec-sqrt -ftz -assume protect-parens - -FORTRAN = gfortran -FFLAGS = -O3 - -# DO NOT include in CFLAGS the "-c" option to compile object only -# this is done explicitly as needed in the Makefile - -CC = cc -CFLAGS = -O - -64_BIT_REALS = -r8 - -# FXDR Makefile compatibility - DO NOT ALTER - -F77CMD = $(FORTRAN) -F77OPTS = $(FFLAGS) -CCCMD = $(CC) -CCOPTS = $(CFLAGS) - -#****************************************************************************** -# -# Author(s) : David E. Kaufmann -# -# Revision Control System (RCS) Information -# -# Source File : $RCSfile: Makefile.Defines,v $ -# Full Path : $Source: /d1/kaufmann/development/RCS/Makefile.Defines,v $ -# Revision : $Revision: 0.1 $ -# Date : $Date: 2003/04/15 22:56:57 $ -# Programmer : $Author: kaufmann $ -# Locked By : $Locker: $ -# State : $State: Exp $ -# -# Modification History: -# -# $Log: Makefile.Defines,v $ -# Revision 0.1 2003/04/15 22:56:57 kaufmann -# Initial implementation -# -# -#******************************************************************************