OPAL (Object Oriented Parallel Accelerator Library)
2024.1
OPAL
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ippl
src
Particle
NoParticleCachingPolicy.h
Go to the documentation of this file.
1
//
2
// Class NoParticleCachingPolicy
3
// Empty caching strategy that doesn't cache anything
4
//
5
// Please note: for the time being this class is *not* used! But since it
6
// might be used in future projects, we keep this file.
7
//
8
// Copyright (c) 2003 - 2020, Paul Scherrer Institut, Villigen PSI, Switzerland
9
// All rights reserved
10
//
11
// This file is part of OPAL.
12
//
13
// OPAL is free software: you can redistribute it and/or modify
14
// it under the terms of the GNU General Public License as published by
15
// the Free Software Foundation, either version 3 of the License, or
16
// (at your option) any later version.
17
//
18
// You should have received a copy of the GNU General Public License
19
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
20
//
21
22
#ifndef NO_PARTICLE_CACHING_POLICY
23
#define NO_PARTICLE_CACHING_POLICY
24
25
template
<
class
T,
unsigned
Dim,
class
Mesh,
class
CachingPolicy>
class
ParticleSpatialLayout
;
26
27
//basic policy that doesn't cache any particles
28
template
<
class
T,
unsigned
Dim,
class
Mesh>
29
class
NoParticleCachingPolicy
{
30
public
:
31
template
<
class
C>
32
void
updateCacheInformation
(
33
ParticleSpatialLayout<T, Dim, Mesh, C >
&
/*PLayout*/
34
)
35
{
36
//don't do anything...
37
}
38
template
<
class
C>
39
void
updateGhostParticles
(
40
IpplParticleBase
<
ParticleSpatialLayout<T,Dim,Mesh,C >
> &
/*PData*/
,
41
ParticleSpatialLayout<T, Dim, Mesh, C >
&
/*PLayout*/
42
)
43
{
44
//don't do anything...
45
}
46
protected
:
47
~NoParticleCachingPolicy
() {}
48
};
49
50
#endif
IpplParticleBase
Definition:
MakeDataSource.h:26
NoParticleCachingPolicy::updateGhostParticles
void updateGhostParticles(IpplParticleBase< ParticleSpatialLayout< T, Dim, Mesh, C > > &, ParticleSpatialLayout< T, Dim, Mesh, C > &)
Definition:
NoParticleCachingPolicy.h:39
NoParticleCachingPolicy
Definition:
NoParticleCachingPolicy.h:29
NoParticleCachingPolicy::updateCacheInformation
void updateCacheInformation(ParticleSpatialLayout< T, Dim, Mesh, C > &)
Definition:
NoParticleCachingPolicy.h:32
ParticleSpatialLayout
Definition:
BoxParticleCachingPolicy.h:20
NoParticleCachingPolicy::~NoParticleCachingPolicy
~NoParticleCachingPolicy()
Definition:
NoParticleCachingPolicy.h:47
Generated on Tue Jul 2 2024 15:05:14 for OPAL (Object Oriented Parallel Accelerator Library) by
1.8.5