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
"platforms/opencl/vscode:/vscode.git/clone" did not exist on "d0f8db5950d445f7a71c3089659af822ee92ac9a"
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):
...
@@ -1134,14 +1134,14 @@ class FortranSourceGenerator(WrapperGenerator):
return
type
return
type
def
isHandleType
(
self
,
type
):
def
isHandleType
(
self
,
type
):
if
type
.
startswith
(
'OpenMM_'
):
if
type
==
'OpenMM_Vec3'
:
return
True
;
return
False
if
type
==
'Vec3'
:
return
True
if
type
.
endswith
(
'*'
)
or
type
.
endswith
(
'&'
):
if
type
.
endswith
(
'*'
)
or
type
.
endswith
(
'&'
):
return
self
.
isHandleType
(
type
[:
-
1
].
strip
())
return
self
.
isHandleType
(
type
[:
-
1
].
strip
())
if
type
.
startswith
(
'const '
):
if
type
.
startswith
(
'const '
):
return
self
.
isHandleType
(
type
[
6
:].
strip
())
return
self
.
isHandleType
(
type
[
6
:].
strip
())
if
type
.
startswith
(
'OpenMM_'
):
return
True
;
return
False
return
False
def
writeOutput
(
self
):
def
writeOutput
(
self
):
...
...
wrappers/generateWrappers.py
View file @
6b6f7f19
...
@@ -1665,14 +1665,14 @@ class FortranSourceGenerator(WrapperGenerator):
...
@@ -1665,14 +1665,14 @@ class FortranSourceGenerator(WrapperGenerator):
return
type
return
type
def
isHandleType
(
self
,
type
):
def
isHandleType
(
self
,
type
):
if
type
.
startswith
(
'OpenMM_'
):
if
type
==
'OpenMM_Vec3'
:
return
True
;
return
False
if
type
==
'Vec3'
:
return
True
if
type
.
endswith
(
'*'
)
or
type
.
endswith
(
'&'
):
if
type
.
endswith
(
'*'
)
or
type
.
endswith
(
'&'
):
return
self
.
isHandleType
(
type
[:
-
1
].
strip
())
return
self
.
isHandleType
(
type
[:
-
1
].
strip
())
if
type
.
startswith
(
'const '
):
if
type
.
startswith
(
'const '
):
return
self
.
isHandleType
(
type
[
6
:].
strip
())
return
self
.
isHandleType
(
type
[
6
:].
strip
())
if
type
.
startswith
(
'OpenMM_'
):
return
True
;
return
False
return
False
def
writeOutput
(
self
):
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