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

YAMBO_ALLOC macro vs function #152

Open
sangallidavide opened this issue Nov 12, 2024 · 0 comments
Open

YAMBO_ALLOC macro vs function #152

sangallidavide opened this issue Nov 12, 2024 · 0 comments
Assignees

Comments

@sangallidavide
Copy link
Member

At present YAMBO_ALLOC is a multi-line macro.

An alternative would be to use a function/subroutine, with an interface.
I understand this is allowed for allocatable variables (see discussion here https://stackoverflow.com/questions/13058743/how-to-pass-allocatable-arrays-to-subroutines-in-fortran which is 12 years old)

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

2 participants