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
b4b121bf
Commit
b4b121bf
authored
Aug 19, 2013
by
peastman
Browse files
Fixed deserialization error caused by SWIG not setting the object ownership flag (see bug 1902)
parent
8f79f59e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
wrappers/python/src/swig_doxygen/swig_lib/python/extend.i
wrappers/python/src/swig_doxygen/swig_lib/python/extend.i
+3
-0
No files found.
wrappers/python/src/swig_doxygen/swig_lib/python/extend.i
View file @
b4b121bf
...
@@ -275,6 +275,7 @@ Parameters:
...
@@ -275,6 +275,7 @@ Parameters:
}
}
%
feature
(
docstring
,
"This method exists only for backward compatibility. @deprecated Use deserialize() instead."
)
deserializeSystem
;
%
feature
(
docstring
,
"This method exists only for backward compatibility. @deprecated Use deserialize() instead."
)
deserializeSystem
;
%
newobject
deserializeSystem
;
static
OpenMM
::
System
*
deserializeSystem
(
const
char
*
inputString
)
{
static
OpenMM
::
System
*
deserializeSystem
(
const
char
*
inputString
)
{
std
::
stringstream
ss
;
std
::
stringstream
ss
;
ss
<<
inputString
;
ss
<<
inputString
;
...
@@ -287,6 +288,7 @@ Parameters:
...
@@ -287,6 +288,7 @@ Parameters:
return
ss
.
str
()
;
return
ss
.
str
()
;
}
}
%
newobject
_deserializeForce
;
static
OpenMM
::
Force
*
_deserializeForce
(
const
char
*
inputString
)
{
static
OpenMM
::
Force
*
_deserializeForce
(
const
char
*
inputString
)
{
std
::
stringstream
ss
;
std
::
stringstream
ss
;
ss
<<
inputString
;
ss
<<
inputString
;
...
@@ -299,6 +301,7 @@ Parameters:
...
@@ -299,6 +301,7 @@ Parameters:
return
ss
.
str
()
;
return
ss
.
str
()
;
}
}
%
newobject
_deserializeIntegrator
;
static
OpenMM
::
Integrator
*
_deserializeIntegrator
(
const
char
*
inputString
)
{
static
OpenMM
::
Integrator
*
_deserializeIntegrator
(
const
char
*
inputString
)
{
std
::
stringstream
ss
;
std
::
stringstream
ss
;
ss
<<
inputString
;
ss
<<
inputString
;
...
...
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