Skip to content

Commit

Permalink
update darwin_arm64_gfortran to be able to use free-format f90 files (M…
Browse files Browse the repository at this point in the history
…ITgcm#879)

* add "-x f95 -ffree-form" to F90FLAGS

does not hurt, but is necessary for any free-format code

* document updating 1 optfile to compile F90 files

---------

Co-authored-by: Jean-Michel Campin <[email protected]>
  • Loading branch information
mjlosch and jm-c authored Oct 17, 2024
1 parent 5bb179d commit c7a06a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion doc/tag-index
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Notes on tags used in MITgcmUV
==============================

o pkg/seaice:
o tools/build_options:
- update darwin_arm64_gfortran to be able to compile free-format F90 files.
o pkg/seaice:
- add new lateral drag parameterisation for landfast ice (Liu etal 2022, JGR)
o verification/*/results:
- update 5 adm + 3 tlm ref. output affected by TAF new version 6.4.5 & 6.5.0
Expand Down
5 changes: 4 additions & 1 deletion tools/build_options/darwin_arm64_gfortran
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ else
fi
fi

F90FLAGS=$FFLAGS
# add undocumented flag -x f95 to force gfortran to interpret any
# suffix as a f90-freeformat file, add -ffree-form to suppress the
# associated warning
F90FLAGS="$FFLAGS -x f95 -ffree-form"
F90OPTIM=$FOPTIM

INCLUDEDIRS=''
Expand Down

0 comments on commit c7a06a2

Please sign in to comment.