blob: f4338e3bfb887b9a5ebabb5e0f0c65898b106ed4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/* Copyright 2020 David Grote
*
* This file is part of WarpX.
*
* License: BSD-3-Clause-LBNL
*/
#ifndef WARPX_PARTICLES_COLLISION_COLLISIONHANDLER_H_
#define WARPX_PARTICLES_COLLISION_COLLISIONHANDLER_H_
#include "CollisionBase.H"
#include <AMReX_Vector.H>
// Forward declaration needed
class MultiParticleContainer;
/* \brief CollisionHandler is a light weight class that contains the
* list of collisions to be done.
*/
class CollisionHandler
{
public:
CollisionHandler ();
/* Perform all of the collisions */
void doCollisions (amrex::Real cur_time, MultiParticleContainer* mypc);
private:
amrex::Vector<std::string> collision_names;
amrex::Vector<std::string> collision_types;
amrex::Vector< std::unique_ptr<CollisionBase> > allcollisions;
};
#endif // WARPX_PARTICLES_COLLISION_COLLISIONHANDLER_H_
|