"openmmapi/src/OSRngSeed.cpp" did not exist on "8ecf9e35e3c1f0d9fa655c7a4d869d0fdbad6f2b"
Commit f6eaf2bd authored by peastman's avatar peastman
Browse files

Merge pull request #320 from peastman/master

Fixed segfaults caused by errors in Fortran wrapper generation
parents a2c68a6f 6b6f7f19
......@@ -1136,14 +1136,14 @@ class FortranSourceGenerator(WrapperGenerator):
return type
def isHandleType(self, type):
if type.startswith('OpenMM_'):
return True;
if type == 'Vec3':
return True
if type == 'OpenMM_Vec3':
return False
if type.endswith('*') or type.endswith('&'):
return self.isHandleType(type[:-1].strip())
if type.startswith('const '):
return self.isHandleType(type[6:].strip())
if type.startswith('OpenMM_'):
return True;
return False
def writeOutput(self):
......
......@@ -1667,14 +1667,14 @@ class FortranSourceGenerator(WrapperGenerator):
return type
def isHandleType(self, type):
if type.startswith('OpenMM_'):
return True;
if type == 'Vec3':
return True
if type == 'OpenMM_Vec3':
return False
if type.endswith('*') or type.endswith('&'):
return self.isHandleType(type[:-1].strip())
if type.startswith('const '):
return self.isHandleType(type[6:].strip())
if type.startswith('OpenMM_'):
return True;
return False
def writeOutput(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment