NoParticleCachingPolicy.h 1.56 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
//
// Class NoParticleCachingPolicy
//   Empty caching strategy that doesn't cache anything
//
//   Please note: for the time being this class is *not* used! But since it
//   might be used in future projects, we keep this file.
//
// Copyright (c) 2003 - 2020, Paul Scherrer Institut, Villigen PSI, Switzerland
// All rights reserved
//
// This file is part of OPAL.
//
// OPAL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// You should have received a copy of the GNU General Public License
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
//

gsell's avatar
gsell committed
22 23 24 25 26 27 28 29 30 31 32
#ifndef NO_PARTICLE_CACHING_POLICY
#define NO_PARTICLE_CACHING_POLICY

template <class T, unsigned Dim, class Mesh, class CachingPolicy> class ParticleSpatialLayout;

//basic policy that doesn't cache any particles
template<class T, unsigned Dim, class Mesh>
class NoParticleCachingPolicy {
public:
template<class C>
	void updateCacheInformation(
33
		ParticleSpatialLayout<T, Dim, Mesh, C > &/*PLayout*/
gsell's avatar
gsell committed
34 35 36 37 38 39
		)
	{
		//don't do anything...
	}
template<class C>
	void updateGhostParticles(
40 41
		IpplParticleBase< ParticleSpatialLayout<T,Dim,Mesh,C > > &/*PData*/,
		ParticleSpatialLayout<T, Dim, Mesh, C > &/*PLayout*/
gsell's avatar
gsell committed
42 43 44 45 46 47 48 49 50
		)
	{
		//don't do anything...
	}
protected:
	~NoParticleCachingPolicy() {}
};

#endif
51 52 53 54 55 56 57 58

// vi: set et ts=4 sw=4 sts=4:
// Local Variables:
// mode:c
// c-basic-offset: 4
// indent-tabs-mode: nil
// require-final-newline: nil
// End: