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
2daea13b
Commit
2daea13b
authored
Aug 24, 2015
by
peastman
Browse files
Merge pull request #1103 from peastman/newobject
Added some missing %newobject tags in SWIG configuration
parents
9da84a77
2031d4e6
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 @
2daea13b
...
...
@@ -278,6 +278,7 @@ Parameters:
"""Get the list of Forces in this System"""
return
[
self
.
getForce
(
i
)
for
i
in
range
(
self
.
getNumForces
())]
%
}
%
newobject
__copy__
;
OpenMM
::
System
*
__copy__
()
{
return
OpenMM
::
XmlSerializer
::
clone
<
OpenMM
::
System
>
(
*
self
)
;
}
...
...
@@ -452,6 +453,7 @@ Parameters:
def
__deepcopy__
(
self
,
memo
)
:
return
self
.
__copy__
()
%
}
%
newobject
__copy__
;
OpenMM
::
Force
*
__copy__
()
{
return
OpenMM
::
XmlSerializer
::
clone
<
OpenMM
::
Force
>
(
*
self
)
;
}
...
...
@@ -470,6 +472,7 @@ Parameters:
def
__deepcopy__
(
self
,
memo
)
:
return
self
.
__copy__
()
%
}
%
newobject
__copy__
;
OpenMM
::
Integrator
*
__copy__
()
{
return
OpenMM
::
XmlSerializer
::
clone
<
OpenMM
::
Integrator
>
(
*
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