Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
ParticleSystem.h
Go to the documentation of this file.
1/* This file is part of MoDELib, the Mechanics Of Defects Evolution Library.
2 *
3 *
4 * MODEL is distributed without any warranty under the
5 * GNU General Public License (GPL) v2 <http://www.gnu.org/licenses/>.
6 */
7
8#ifndef _MODEL_ParticleSystem_h_
9#define _MODEL_ParticleSystem_h_
10
11#ifdef _MODEL_MPI_
13#else
15#endif
16
17//#include <SystemProperties.h>
18
19namespace model {
20
21 /**************************************************************************/
22 /**************************************************************************/
30 template <typename _ParticleType >
32#ifdef _MODEL_MPI_
33 /* inheritance */ public ParticleSystemParallel<_ParticleType>
34#else
35 /* inheritance */ public ParticleSystemSerial<_ParticleType>
36#endif
37 {
38
39 /*****************************************/
41 {
43 }
44
45#ifdef _MODEL_MPI_
46 /*****************************************/
47 ParticleSystem(int argc, char* argv[]) :
48 /* init list */ ParticleSystemParallel<_ParticleType>(argc,argv)
49 {
51 }
52#else
53 /*****************************************/
54 ParticleSystem(int argc, char* argv[])
55 {
57 argc+=0; // avoid unused warning
58 argv=argv; // avoid unused warning
59
60 }
61
62 static void initMPI(int argc, char* argv[])
63 {
65 argc+=0; // avoid unused warning
66 argv=argv; // avoid unused warning
67 }
68#endif
69
70 };
71
72} // end namespace
73#endif
74
Parallel Version (openMPI + openMP).
Serial Version (openMP only).
ParticleSystem(int argc, char *argv[])
static void initMPI(int argc, char *argv[])
void argv
void b int argc