From 5dc2b7c78360d6b1b1ca503286615500b149782a Mon Sep 17 00:00:00 2001 From: Greg Lucas Date: Mon, 30 Aug 2021 14:00:16 -0600 Subject: [PATCH] FIX: Remove architecture and math optimizations from compiler Architecture and math optimization settings work well when installing locally, but are not portable to other architectures. This removes those optimizations to err in the favor of portability. --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 4f450ac..674b191 100644 --- a/setup.py +++ b/setup.py @@ -24,10 +24,11 @@ # Add the directory where the files are located msis2_sources = [os.path.join('src', 'msis2', x) for x in msis2_sources] +# If you want to get some additional speed from compile-time options you can +# add extra compile-time flags. e.g., '-march=native', '-ffast-math' ext_msis2 = Extension(name='pymsis.msis2f', sources=msis2_sources, - extra_f90_compile_args=['-std=legacy', '-march=native', - '-ffast-math']) + extra_f90_compile_args=['-std=legacy']) msis00_sources = [os.path.join('src', 'msis00', 'msis00.F90'), os.path.join('src', 'msis00', 'NRLMSISE-00.FOR')]