1 #ifndef DDMD_ATOM_TYPE_H 2 #define DDMD_ATOM_TYPE_H 68 const std::string&
name()
const;
98 template <
class Archive>
friend 160 template <
class Archive>
171 #include <util/mpi/MpiTraits.h> 178 void send<DdMd::AtomType>(MPI::Comm& comm,
DdMd::AtomType& data,
int dest,
int tag);
181 void recv<DdMd::AtomType>(MPI::Comm& comm,
DdMd::AtomType& data,
int source,
int tag);
184 void bcast<DdMd::AtomType>(MPI::Intracomm& comm,
DdMd::AtomType& data,
int root);
friend void serialize(Archive &ar, AtomType &atomType, const unsigned int version)
Serialize an AtomType.
static void initStatic()
Call this to guarantee initialization of static data.
const std::string & name() const
Get the name string.
double mass() const
Get the mass.
File containing preprocessor macros for error handling.
Parallel domain decomposition (DD) MD simulation.
friend std::istream & operator>>(std::istream &in, AtomType &atomType)
istream extractor (>>) for an AtomType.
Utility classes for scientific computation.
static MPI::Datatype type
Initialize MPI Datatype.
This file contains templates for global functions send<T>, recv<T> and bcast<T>.
friend std::ostream & operator<<(std::ostream &out, const AtomType &atomType)
ostream inserter (<<) for an AtomType.
void setName(std::string name)
Set the name string.
Descriptor for a type of Atom.
void setId(int Id)
Set the type index.
int id() const
Get the index.
void setMass(double mass)
Set the mass.