AtChem / AtChem2

Atmospheric chemistry box-model for the MCM
MIT License
58 stars 23 forks source link

Make -O2 the default optimisation level on gfortran. #448

Closed spco closed 3 years ago

spco commented 3 years ago

In a very small amount of testing documented at https://github.com/AtChem/AtChem2/issues/436#issuecomment-771136176, this should provide a 2x speedup (and I think this is a conservative estimate in most cases, but don't have the data to back that up, just experience!)

codecov[bot] commented 3 years ago

Codecov Report

Merging #448 (2b677b5) into master (48171a0) will increase coverage by 0.87%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #448      +/-   ##
==========================================
+ Coverage   64.63%   65.51%   +0.87%     
==========================================
  Files          17       17              
  Lines        2138     2047      -91     
==========================================
- Hits         1382     1341      -41     
+ Misses        756      706      -50     
Flag Coverage Δ
build 52.23% <ø> (+1.20%) :arrow_up:
tests 82.81% <ø> (+0.25%) :arrow_up:
unittests 31.61% <ø> (+0.44%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/argparse.f90 28.12% <0.00%> (-10.45%) :arrow_down:
src/constraintFunctions.f90 40.31% <0.00%> (-4.66%) :arrow_down:
src/atmosphereFunctions.f90 59.09% <0.00%> (-3.88%) :arrow_down:
src/solarFunctions.f90 90.62% <0.00%> (-3.61%) :arrow_down:
src/dataStructures.f90 58.06% <0.00%> (-0.21%) :arrow_down:
src/inputFunctions.f90 54.94% <0.00%> (-0.11%) :arrow_down:
test/unit_tests/solar_test.f90 100.00% <0.00%> (ø)
test/unit_tests/config_test.f90 100.00% <0.00%> (ø)
test/unit_tests/argparse_test.f90 100.00% <0.00%> (ø)
test/unit_tests/atmosphere_test.f90 100.00% <0.00%> (ø)
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 48171a0...2b677b5. Read the comment docs.