1 #ifndef SIMP_SPECIES_GROUP_TPP 2 #define SIMP_SPECIES_GROUP_TPP 11 #include "SpeciesGroup.h" 12 #include <util/param/Parameter.h> 15 #include <util/mpi/MpiStructBuilder.h> 29 for (
int i = 0; i < NAtom; ++i) {
30 in >> speciesGroup.atomIds_[i];
32 in >> speciesGroup.typeId_;
41 operator << (std::ostream& out, const SpeciesGroup<NAtom>& speciesGroup)
43 for (
int i = 0; i < NAtom; ++i) {
45 out << speciesGroup.atomIds_[i];
48 out << speciesGroup.typeId_;
64 for (
int i = 0; i < NAtom; ++i) {
65 builder.
addMember(&(
object.atomIds_[i]), MPI::INT);
67 builder.
addMember(&
object.typeId_, MPI::INT);
void addMember(void *memberAddress, MPI::Datatype type, int count=1)
Add a new member variable to the type map.
A Group of covalently interacting atoms within any molecule of one Species.
static void commitMpiType()
Commit associated MPI DataType.
Classes used by all simpatico molecular simulations.
std::istream & operator>>(std::istream &in, MonoclinicBoundary &boundary)
istream extractor for a MonoclinicBoundary.
void setBase(void *objectAddress)
Set address of an class instance.
void commit(MPI::Datatype &newType)
Build and commit a user-defined MPI Struct datatype.
Utility classes for scientific computation.
A MpiStructBuilder objects is used to create an MPI Struct datatype.