Skip to content

Commit

Permalink
Generate only methods for classes
Browse files Browse the repository at this point in the history
  • Loading branch information
krystophny committed Nov 26, 2024
1 parent 148d0b9 commit 1487238
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions f90wrap/f90wrapgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,10 @@ def visit_Type(self, node):
"""
log.info("F90WrapperGenerator visiting type %s" % node.name)

if("class(%(classname)s)" % {"classname": node.name} in self.types):
log.info("Wrapping methods and no member variables for class %s" % node.name)
return self.generic_visit(node)

for el in node.elements:
dims = list(filter(lambda x: x.startswith("dimension"), el.attributes))
if len(dims) == 0: # proper scalar type (normal or derived)
Expand Down

0 comments on commit 1487238

Please sign in to comment.