13 #include <util/mpi/MpiStructBuilder.h> 27 if (v1.elem_[i] != v2.elem_[i]) {
38 if (v1.elem_[i] != v2[i]) {
46 {
return (v2 == v1); }
51 {
return !(v1 == v2); }
55 {
return !(v1 == v2); }
59 {
return !(v2 == v1); }
67 in >> vector.elem_[i];
78 out.width(IntVector::Width);
79 out << vector.elem_[i];
94 if (!MpiTraits<IntVector>::hasType) {
101 builder.
commit(MpiTraits<IntVector>::type);
102 MpiTraits<IntVector>::hasType =
true;
115 static int nCall = 0;
void addMember(void *memberAddress, MPI::Datatype type, int count=1)
Add a new member variable to the type map.
const int Dimension
Dimensionality of space.
static void commitMpiType()
Commit MPI datatype MpiTraits<IntVector>::type.
File containing preprocessor macros for error handling.
std::ostream & operator<<(std::ostream &out, const Pair< Data > &pair)
Output a Pair to an ostream, without line breaks.
bool operator==(const PointSymmetry &A, const PointSymmetry &B)
Are two PointSymmetry objects equivalent?
void setBase(void *objectAddress)
Set address of an class instance.
void commit(MPI::Datatype &newType)
Build and commit a user-defined MPI Struct datatype.
std::istream & operator>>(std::istream &in, Pair< Data > &pair)
Input a Pair from an istream.
Utility classes for scientific computation.
A MpiStructBuilder objects is used to create an MPI Struct datatype.
static void initStatic()
Initialize static IntVector::Zero.
static const IntVector Zero
Zero IntVector.
An IntVector is an integer Cartesian vector.
bool operator!=(const PointSymmetry &A, const PointSymmetry &B)
Are two PointSymmetry objects not equivalent?