-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add support to promote Fortran's REAL to DOUBLE #11
Comments
It looks doable. There are three changes necessary to use 64-bit reals:
|
This may be beyond the scope of your work on a CMake build system, but please note that the Fortran standard says nothing about the values of available real kinds. While, in practice, it may be safe to assume
However, I am unaware of a compiler vendor whose Ultimately, you may be able to reduce complexity in the build system by relying on I'm sure this is not news to you or the developers of WRF at NCAR/UCAR and elsewhere, but just wanted to add my $0.02. |
@zbeekman Thanks for the insights. The goal here is to not change the WRF source code at all, but simply bring the CMake setup on parity to the existing configure/Makefile based one which has a |
In that case, I’d keep it as is or go the other way. I don’t remember which
system it is, but I know there’s at least one where the real kind for
double precision is *NOT* 8. So as far as the documentation goes I’d
recommend not talking about the real kinds by value, but instead specify
that the appropriate option will be passed to promote the default real
kinds to double precision reals (or the closest implementation available on
that system).
…On Wed, May 22, 2019 at 3:58 AM Maik Riechert ***@***.***> wrote:
@zbeekman <https://github.com/zbeekman> Thanks for the insights. The goal
here is to not change the WRF source code at all, but simply bring the
CMake setup on parity to the existing configure/Makefile based one which
has a -r8 flag. I agree though that for documentation purposes we should
probably not directly say that this will give you 64-bit reals, but simply
that it will use real(8) instead of real(4). Does that make sense? We'd
like to make it as understandable to end-users as possible.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACEIPFERIIUU7IRNUNEIDLPWT4JPANCNFSM4HK55G6Q>
.
|
@letmaik this is currently not a priority or a strong requirement but it would be good to understand the type and amount of work required to add this option to our CMake support. Are you happy to have a look at this so we can judge the feasibility of such enhancement? This option would apply to WRF only -- i.e. it would not apply to WPS.
The text was updated successfully, but these errors were encountered: