Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
include
ParticleInteraction
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_
12
#include <
ParticleSystemParallel.h
>
13
#else
14
#include <
ParticleSystemSerial.h
>
15
#endif
16
17
//#include <SystemProperties.h>
18
19
namespace
model
{
20
21
/**************************************************************************/
22
/**************************************************************************/
30
template
<
typename
_ParticleType >
31
struct
ParticleSystem
:
32
#ifdef _MODEL_MPI_
33
/* inheritance */
public
ParticleSystemParallel
<_ParticleType>
34
#else
35
/* inheritance */
public
ParticleSystemSerial
<_ParticleType>
36
#endif
37
{
38
39
/*****************************************/
40
ParticleSystem
()
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
ParticleSystemParallel.h
ParticleSystemSerial.h
model::ParticleSystemParallel
Parallel Version (openMPI + openMP).
Definition
ParticleSystemParallel.h:47
model::ParticleSystemSerial
Serial Version (openMP only).
Definition
ParticleSystemSerial.h:41
model
Definition
DD_converter.dox:2
model::ParticleSystem::ParticleSystem
ParticleSystem(int argc, char *argv[])
Definition
ParticleSystem.h:47
model::ParticleSystem::ParticleSystem
ParticleSystem()
Definition
ParticleSystem.h:40
model::ParticleSystem::initMPI
static void initMPI(int argc, char *argv[])
Definition
ParticleSystem.h:62
argv
void argv
Definition
triangle.cpp:3286
argc
void b int argc
Definition
triangle.cpp:3287
Generated by
1.15.0