Closed ltaylor16 closed 11 months ago
Removes some custom code in add_var_getter_setter and makes the rules for meta attributes more consistent.
add_var_getter_setter
Fixes for getter/setter for nested structs:
A struct member of type struct **child +dimension(n) will return a Fortran type of type(C_PTR) child(:).
struct **child +dimension(n)
type(C_PTR) child(:)
Also add a test for member struct *array +dimension(n) which returns Fortran type type(struct) array(:) since the memory is contiguous.
struct *array +dimension(n)
type(struct) array(:)
Removes some custom code in
add_var_getter_setter
and makes the rules for meta attributes more consistent.Fixes for getter/setter for nested structs:
A struct member of type
struct **child +dimension(n)
will return a Fortran type oftype(C_PTR) child(:)
.Also add a test for member
struct *array +dimension(n)
which returns Fortran typetype(struct) array(:)
since the memory is contiguous.