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

ANY() and COUNT() on scalar or array #41

Closed
QuentinRodier opened this issue Sep 26, 2023 · 1 comment
Closed

ANY() and COUNT() on scalar or array #41

QuentinRodier opened this issue Sep 26, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@QuentinRodier
Copy link
Collaborator

On branch demo-dwarf, commits :
6f801ec
ef6b29a
c6e9033

transforms by hand COUNT() and ANY() in the case of the argument is a scalar.
(on master branch, CPU, arguments are arrays)

For a better way of handling both cases (array or scalar), one must code a version of ANY() and COUNT() that

  • returns the scalar if the argument is a scalar
  • apply the operator if the argument is an array

By extending the intrinsic functions (possible ? which version of FORTRAN ?) or re-write new home-made function

@QuentinRodier QuentinRodier added the enhancement New feature or request label Sep 26, 2023
@QuentinRodier
Copy link
Collaborator Author

Moved to PFT repo

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

No branches or pull requests

1 participant