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
681ab7ff
"plugins/amoeba/platforms/hip/src/AmoebaHipKernelFactory.cpp" did not exist on "222378c60f9f65afe3b9419bdc3be03be389d2d1"
Commit
681ab7ff
authored
Apr 04, 2012
by
Peter Eastman
Browse files
Implement __copy__() and __deepcopy__() for Forces
parent
dea037c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
wrappers/python/src/swig_doxygen/swig_lib/python/extend.i
wrappers/python/src/swig_doxygen/swig_lib/python/extend.i
+13
-1
No files found.
wrappers/python/src/swig_doxygen/swig_lib/python/extend.i
View file @
681ab7ff
...
...
@@ -202,3 +202,15 @@
return
copyVVec3ToList
(
values
)
;
}
}
%
extend
OpenMM
::
Force
{
%
pythoncode
{
def
__copy__
(
self
)
:
copy
=
self
.
__class__
.
__new__
(
self
.
__class__
)
copy
.
__init__
(
self
)
return
copy
def
__deepcopy__
(
self
,
memo
)
:
return
self
.
__copy__
()
}
}
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