Simpatico  v1.10
SpeciesGroup.cpp
1 #ifdef UTIL_MPI
2 
3 /*
4 * Simpatico - Simulation Package for Polymeric and Molecular Liquids
5 *
6 * Copyright 2010 - 2017, The Regents of the University of Minnesota
7 * Distributed under the terms of the GNU General Public License.
8 */
9 
10 #include "SpeciesGroup.h"
11 #include "SpeciesGroup.tpp"
12 
13 namespace Util
14 {
15  /*
16  * Initialize MpiTraits< SpeciesGroup<4> >
17  */
18  MPI::Datatype MpiTraits< Simp::SpeciesGroup<4> >::type = MPI::BYTE;
19  bool MpiTraits< Simp::SpeciesGroup<4> >::hasType = false;
20 
21  /*
22  * Initialize MpiTraits< SpeciesGroup<3> >
23  */
24  MPI::Datatype MpiTraits< Simp::SpeciesGroup<3> >::type = MPI::BYTE;
25  bool MpiTraits< Simp::SpeciesGroup<3> >::hasType = false;
26 
27  /*
28  * Initialize MpiTraits< SpeciesGroup<2> >
29  */
30  MPI::Datatype MpiTraits< Simp::SpeciesGroup<2> >::type = MPI::BYTE;
31  bool MpiTraits< Simp::SpeciesGroup<2> >::hasType = false;
32 
33 }
34 
35 namespace Simp
36 {
37 
39  {
40  if (!Util::MpiTraits< SpeciesGroup<2> >::hasType) {
42  }
43  if (!Util::MpiTraits< SpeciesGroup<3> >::hasType) {
45  }
46  if (!Util::MpiTraits< SpeciesGroup<4> >::hasType) {
48  }
49  }
50 
51 }
52 #endif // ifdef UTIL_MPI
A Group of covalently interacting atoms within any molecule of one Species.
Definition: SpeciesGroup.h:20
static void commitMpiType()
Commit associated MPI DataType.
Classes used by all simpatico molecular simulations.
Utility classes for scientific computation.
Definition: accumulators.mod:1
Default MpiTraits class.
Definition: MpiTraits.h:39
void commitMpiSpeciesGroupTypes()
Commit all MPI SpeciesGroup data types.