yambo-code / yambo

This is the official GPL repository of the yambo code
http://www.yambo-code.eu/
GNU General Public License v2.0
99 stars 39 forks source link

YAMBO_ALLOC macro vs function #152

Open sangallidavide opened 1 week ago

sangallidavide commented 1 week ago

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)