stfc / PSyclone

Domain-specific compiler and code transformation system for Finite Difference/Volume/Element Earth-system models in Fortran
BSD 3-Clause "New" or "Revised" License
107 stars 28 forks source link

New builtin for LFRic, Min_X and Max_X #2021

Open christophermaynard opened 1 year ago

christophermaynard commented 1 year ago

New builtin from PSyclone for LFRic fields, similar Sum_X to compute the min/max on a field.

christophermaynard commented 1 year ago

Associated with LFRic ticket. #3624

TeranIvy commented 1 year ago

@christophermaynard, we already have an issue for global reductions, it's #489. There are other built-ins there besides min and max, and that is mean and rms.

We can keep this issue and make #489 as the overarching issue for all of them, or we can close this issue as a duplicate of #489 and implement #489 in 2 PRs: 1) min and max, 2) mean and rms. I am not sure about the support for mean in the LFRic infrastructure and we need it for rms.