Skip to content

Commit

Permalink
Allow allocatable class output
Browse files Browse the repository at this point in the history
  • Loading branch information
krystophny committed Nov 22, 2024
1 parent d033fa1 commit ae015f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion f90wrap/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ def visit_Procedure(self, node):
continue
else:
# allocatable arguments only allowed for derived types
if 'allocatable' in arg.attributes and not arg.type.startswith('type'):
if 'allocatable' in arg.attributes and not (
arg.type.startswith('type') or arg.type.startswith('class')):
log.warning('removing routine %s due to allocatable intrinsic type arguments' % node.name)
return None
# no pointer arguments
Expand Down

0 comments on commit ae015f1

Please sign in to comment.