Simpatico  v1.10
McMd_mpi.cpp
1 /*
2 * Simpatico - Simulation Package for Polymeric and Molecular Liquids
3 *
4 * Copyright 2010 - 2017, The Regents of the University of Minnesota
5 * Distributed under the terms of the GNU General Public License.
6 */
7 
8 #ifdef UTIL_MPI
9 #include "McMd_mpi.h"
10 #include <simp/species/SpeciesGroup.h>
11 
12 namespace Util
13 {
14 
15  /*
16  * Initialize MpiTraits< Pair<int> >
17  */
18  MPI::Datatype MpiTraits< Pair<int> >::type = MPI::BYTE;
19  bool MpiTraits< Pair<int> >::hasType = false;
20 
21 }
22 
23 #include <util/space/Vector.h>
24 #include <util/space/IntVector.h>
25 #include <simp/species/SpeciesGroup.tpp>
26 #include <mcMd/analyzers/util/PairSelector.h>
27 
28 namespace McMd
29 {
30 
32  {
35  }
38  }
39  if (!Util::MpiTraits< Util::Pair<int> >::hasType) {
41  }
43  PairSelector::commitMpiType();
44  }
46  }
47 
48 }
49 #endif // ifdef UTIL_MPI
void commitMpiTypes()
Commit all MPI data types needed for Mc and Md simulations.
Definition: McMd_mpi.cpp:31
static void commitMpiType()
Commit MPI datatype MpiTraits<Vector>::type.
Definition: Vector.cpp:97
static void commitMpiType()
Commit MPI datatype MpiTraits<IntVector>::type.
Definition: IntVector.cpp:92
Utility classes for scientific computation.
Definition: accumulators.mod:1
Default MpiTraits class.
Definition: MpiTraits.h:39
void commitMpiSpeciesGroupTypes()
Commit all MPI SpeciesGroup data types.
static void commitMpiType()
Commit associated MPI DataType.
Definition: Pair.h:69
Single-processor Monte Carlo (MC) and molecular dynamics (MD).