diff --git a/configure b/configure index 8eb8200..26765d3 100755 --- a/configure +++ b/configure @@ -1,6 +1,11 @@ #!/usr/bin/env bash # Script to generate Mk_cmd for socrates +# Optimisation flags options (uncomment as required) +optim="-Ofast -march=native" +# optim="-O3" +# optim="" + # Remove old files rm -rf "bin/" rm -f "set_rad_env" @@ -29,8 +34,8 @@ if [[ "$OSTYPE" == "darwin"* ]]; then else extra="" fi -echo "FORTCOMP = $fc -Ofast -fPIC $extra -c " >> $genpath -echo "LINK = $fc -Ofast -fPIC $extra " >> $genpath +echo "FORTCOMP = $fc $optim -fPIC $extra -c " >> $genpath +echo "LINK = $fc $optim -fPIC $extra " >> $genpath ar="$(command -v ar)" if [ -z "$ar" ]; then diff --git a/make/Mk_cmd b/make/Mk_cmd index 27ea9cf..f22bc3d 100644 --- a/make/Mk_cmd +++ b/make/Mk_cmd @@ -1,12 +1,12 @@ # Generated automatically -# System: Linux norma2.intra.astro.rug.nl 5.14.0-362.18.1.el9_3.0.1.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Feb 11 13:49:23 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux -# Date: Thu May 30 05:46:41 PM CEST 2024 +# System: Darwin hnmacbook 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 arm64 +# Date: Mon 3 Jun 2024 09:14:35 BST -FORTCOMP = /usr/bin/gfortran -Ofast -fPIC -c -LINK = /usr/bin/gfortran -Ofast -fPIC +FORTCOMP = /opt/homebrew/bin/gfortran -Ofast -march=native -fPIC -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/ -c +LINK = /opt/homebrew/bin/gfortran -Ofast -march=native -fPIC -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/ LIBLINK = /usr/bin/ar rvu -INCCDF_PATH = /usr/include -I/usr/lib64/gfortran/modules -LIBCDF_PATH = netcdff +INCCDF_PATH = /opt/homebrew/Cellar/netcdf-fortran/4.6.1/include -I/opt/homebrew/Cellar/netcdf-fortran/4.6.1/include -I/opt/homebrew/Cellar/netcdf-fortran/4.6.1/include +LIBCDF_PATH = /opt/homebrew/Cellar/netcdf-fortran/4.6.1/lib LIBCDF_NAME = netcdff OMPARG = -fopenmp