Skip to content

Add ecbuild macro to set precision for fortran real and double #91

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dareg
Copy link

@dareg dareg commented Apr 4, 2025

Hello,

I am proposing to add two new macros to ecbuild.
Some of our software at MétéoFrance use real variables without any kind.
Their size is defined by the compilation flags. Those configurations were managed through custom makefile or with the gmkpack tool. Since we are now trying to move to cmake/ecbuild we thought it might be a good idea to let cmake/ecbuild find the right options instead of us writing it by hand for every project.
I didn't find any function or macro to do it, so I am proposing one.
It supports the following compilers: Intel ifort, Intel ifx, GNU gfortran, NVHPC nvfortran, and NEC nfort.

@FussyDuck
Copy link

FussyDuck commented Apr 4, 2025

CLA assistant check
All committers have signed the CLA.

@dareg dareg changed the title add ecbuild macro to set precision for fortran real Add ecbuild macro to set precision for fortran real and double Apr 4, 2025
@marcosbento
Copy link
Collaborator

We can aprove it to run the CI workflow/checks.

Not being a Fortran user, maybe @wdeconinck can have a look at how this links with what we do at ECMWF?

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

Successfully merging this pull request may close these issues.

4 participants