blob: 3c203c31707ec81465033680e492a435d6e91087 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
__all__ = ['PythonCAPISubProgram']
import sys
from wrapper_base import *
class PythonCAPISubProgram(WrapperBase):
"""
Fortran subprogram hooks.
"""
_defined = []
def __init__(self, parent, block):
WrapperBase.__init__(self)
self.name = name = block.name
if name in self._defined:
return
self._defined.append(name)
self.info('Generating interface for %s: %s' % (block.__class__, name))
raise NotImplementedError,`name,block.__class__`
return
|