"plugins/amoeba/platforms/cuda/src/kernels/amoebaCudaGpu.cpp" did not exist on "80d8311ecb148f019fd9eb8493ad4f03d8f8e5f6"
Commit d56c21b0 authored by peastman's avatar peastman
Browse files

Merged latest changes from main branch

parents 1049add2 8d062ebb
......@@ -35,8 +35,9 @@ __version__ = "1.0"
from simtk.unit import daltons
import copy_reg
class Element:
class Element(object):
"""An Element represents a chemical element.
The simtk.openmm.app.element module contains objects for all the standard chemical elements,
......@@ -85,6 +86,10 @@ def get_by_symbol(symbol):
s = symbol.strip().upper()
return Element._elements_by_symbol[s]
def _pickle_element(element):
return (get_by_symbol, (element.symbol,))
copy_reg.pickle(Element, _pickle_element)
hydrogen = Element( 1, "hydrogen", "H", 1.007947*daltons)
deuterium = Element( 1, "deuterium", "D", 2.01355321270*daltons)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment