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

Building with PGI #2

Open
qingli411 opened this issue Mar 22, 2021 · 0 comments
Open

Building with PGI #2

qingli411 opened this issue Mar 22, 2021 · 0 comments

Comments

@qingli411
Copy link

We are trying to use GOTM turbulence library in MPAS-Ocean (See this PR MPAS-Dev/MPAS-Model#704). But the use of spacing in the following line causes an error when building with PGI -- spacing doesn't seem to be supported in initialization in PGI (see more details in the discussion near the end of the above PR of MPAS-Ocean).

real(rk),parameter :: default_minimum = default_fill_value + spacing(default_fill_value)

As suggested by @mark-petersen, changing this line to

real(rk),parameter :: default_minimum = default_fill_value * 0.9999999_rk

seems to fix this. So I'd like to check with you if it makes sense to make this change in flexout? @bolding @jornbr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant