blob: dd9d34f4f40a781569b42c7c5c803e50f0ab50a8 (
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
36
37
38
39
|
/* Copyright 2019-2020 Andrew Myers, Axel Huebl, Maxence Thevenet,
* Revathi Jambunathan, Weiqun Zhang
*
* This file is part of WarpX.
*
* License: BSD-3-Clause-LBNL
*/
#include "InjectorMomentum.H"
#include "PlasmaInjector.H"
using namespace amrex;
InjectorMomentum::~InjectorMomentum ()
{
switch (type)
{
case Type::parser:
{
object.parser.m_ux_parser.clear();
object.parser.m_uy_parser.clear();
object.parser.m_uz_parser.clear();
break;
}
case Type::gaussian:
case Type::boltzmann:
case Type::juttner:
case Type::constant:
case Type::radial_expansion:
{
break;
}
case Type::custom:
{
object.custom.clear();
break;
}
}
}
|