fgen.wrapping_strategies.array_derived_type#
Wrapping strategy for arrays of derived types
These are tricky because f2py doesn’t support derived types. As a result, we pass arrays of integers, which act as pointers, to the derived type instances across the Python-Fortran boundary. This requires careful, custom handling on both sides.
WrappingStrategyArrayDerivedType#
- class WrappingStrategyArrayDerivedType(no_setters_class_suffix='NoSetters', instance_indexes_suffix='_instance_indexes')[source]#
Bases:
objectWrapping strategy for arrays of derived types