Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
6b6f7f19
Commit
6b6f7f19
authored
Feb 06, 2014
by
peastman
Browse files
Fixed segfaults caused by errors in Fortran wrapper generation
parent
b2caf6cc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
plugins/amoeba/wrappers/generateAmoebaWrappers.py
plugins/amoeba/wrappers/generateAmoebaWrappers.py
+4
-4
wrappers/generateWrappers.py
wrappers/generateWrappers.py
+4
-4
No files found.
plugins/amoeba/wrappers/generateAmoebaWrappers.py
View file @
6b6f7f19
...
...
@@ -1134,14 +1134,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
):
...
...
wrappers/generateWrappers.py
View file @
6b6f7f19
...
...
@@ -1665,14 +1665,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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment