diff --git a/build/makefile b/build/makefile index 94e0ae83833e9a61693b125b9f8cc8feb243d08a..1b3442e5ed5c9f0f4422389888ea0fd6ea9ca4d8 100644 --- a/build/makefile +++ b/build/makefile @@ -14,34 +14,20 @@ # ACTORS_INCLUDES = # ACTORS_LIBRARIES = -# gfortran compiler flags -ifeq "$(FC)" "gfortran" + # Production runs -# FLAGS_NOAH = -O3 -ffree-form -ffree-line-length-none -fmax-errors=0 -fPIC -# FLAGS_COMM = -O3 -ffree-line-length-none -fmax-errors=0 -fPIC -# FLAGS_SUMMA = -O3 -ffree-line-length-none -fmax-errors=0 -fPIC -# FLAGS_ACTORS = -O3 +FLAGS_NOAH = -O3 -ffree-form -ffree-line-length-none -fmax-errors=0 -fPIC +FLAGS_COMM = -O3 -ffree-line-length-none -fmax-errors=0 -fPIC +FLAGS_SUMMA = -O3 -ffree-line-length-none -fmax-errors=0 -fPIC +FLAGS_ACTORS = -O3 # # Debug runs -FLAGS_NOAH = -p -g -O0 -ffree-form -ffree-line-length-none -fmax-errors=0 -fbacktrace -Wno-unused -Wno-unused-dummy-argument -fPIC -FLAGS_COMM = -p -g -O0 -Wall -ffree-line-length-none -fmax-errors=0 -fbacktrace -fcheck=bounds -fPIC -FLAGS_SUMMA = -p -g -O0 -Wall -ffree-line-length-none -fmax-errors=0 -fbacktrace -fcheck=bounds -fPIC -FLAGS_ACTORS = -g -O0 -Wall -endif - -# ifort compiler flags -ifeq "$(FC)" "ifort" - -# define compiler flags -# FLAGS_NOAH = -O3 -autodouble -warn nounused -noerror_limit -FR -auto -fltconsistency -fPIC -# FLAGS_COMM = -O3 -FR -auto -warn nounused -fltconsistency -fpe0 -fPIC -# FLAGS_SUMMA = -O3 -FR -auto -warn nounused -fltconsistency -fpe0 -fPIC - -# debug runs -FLAGS_NOAH = -O3 -g -autodouble -warn nounused -noerror_limit -FR -auto -fltconsistency -fPIC -FLAGS_COMM = -O3 -g -FR -auto -warn nounused -fltconsistency -fpe0 -fPIC -FLAGS_SUMMA = -O3 -g -FR -auto -warn nounused -fltconsistency -fpe0 -fPIC -endif +# FLAGS_NOAH = -p -g -O0 -ffree-form -ffree-line-length-none -fmax-errors=0 -fbacktrace -Wno-unused -Wno-unused-dummy-argument -fPIC +# FLAGS_COMM = -p -g -O0 -Wall -ffree-line-length-none -fmax-errors=0 -fbacktrace -fcheck=bounds -fPIC +# FLAGS_SUMMA = -p -g -O0 -Wall -ffree-line-length-none -fmax-errors=0 -fbacktrace -fcheck=bounds -fPIC +# FLAGS_ACTORS = -g -O0 -Wall + + #======================================================================== # PART 1: Define directory paths #========================================================================