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: object

Wrapping strategy for arrays of derived types

instance_indexes_suffix: str#

Suffix to use for variables that represent the instance indexes of the derived types

no_setters_class_suffix: str#

Suffix to add to the standard class when returning the no setters version