[WIP] working version on gfortran11 on macOS v11.2 #211
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I am opening the PR as a way to share and discuss but shouldnt be merged in its current form
This follows up on #210 and are modifications which eventually allowed me to compile and run
held_suarez_test_case.py
on a Mac (running OS 11.2).There were several types of issues as you'll see, some of which I uncovered after upgrading to the latest gfortran compiler (v11)
MACOS
cpp flag; more or less as done by @jamesp in 2018 (https://github.com/jamesp/Isca/tree/mac)-fallow-argument-mismatch
and-fallow-invalid-boz
part is related to warnings that have recently been turned into errors (the options revert to warnings). Would need a switch like in avoid error message introduced in gfortran 10 MITgcm/MITgcm#480 probably for gfortran < v10create_xgrid.c
I needed to add a definition ofisHeadNode_b
(same as inmosaic_util.c
but for the name)gfortran_mac
option fileMaybe this could get reviewed and merged after some revision. Please chime in