Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Changes needed for NAG Compiler #240

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

mathomp4
Copy link
Member

@mathomp4 mathomp4 commented Feb 3, 2022

This PR tracks changes needed to compile GMAO_Shared with the NAG Compiler. NAG is very strict and will not allow the use of Fortran extensions that are endemic to GEOS.


The first category are procedures that are now part of the Fortran Standard that used to be extensions in some compilers:

  • iargc()command_argument_count()
  • getarg()get_command_argument()
  • getenv()get_environment_variable()
  • system()execute_command_line()
  • call exit(0)stop
  • call exit(N)error stop N

NAG also doesn't support (without flags that need to be used everywhere as @tclune can elucidate on) the use of real*4 or real(kind=4). The reason is that NAG does not use 4 for 32-bit real and 8 for 64-bit, instead they use 1 and 2. (The Standard does not specify what "kind" a 32-bit real must be, only that there must be one.) So, many changes are of the type:

  • real*4real(REAL32)
  • real(kind=8)real(kind=REAL64)

@mathomp4 mathomp4 self-assigned this Feb 3, 2022
@mathomp4 mathomp4 added the 0 diff The changes in this pull request have verified to be zero-diff with the target branch. label Feb 3, 2022
@mathomp4 mathomp4 added the Contingent - DNA Do Not Approve (DNA). These changes are contingent on other PRs label Feb 3, 2022
Copy link
Collaborator

@rtodling rtodling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are fine by me. Branch might need update though.

@mathomp4
Copy link
Member Author

These are fine by me. Branch might need update though.

Yeah. I need to revisit this. Files got moved long ago...

I'll put it on the list!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 diff The changes in this pull request have verified to be zero-diff with the target branch. Contingent - DNA Do Not Approve (DNA). These changes are contingent on other PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants