aboutsummaryrefslogtreecommitdiff
path: root/Source/Initialization/InjectorMomentum.cpp
blob: 3c52df1bafbe546297a5e815dd797de41714db18 (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
/* 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"

using namespace amrex;

void InjectorMomentum::clear ()
{
    switch (type)
    {
    case Type::parser:
    case Type::gaussian:
    case Type::gaussianflux:
    case Type::boltzmann:
    case Type::juttner:
    case Type::constant:
    case Type::radial_expansion:
    {
        break;
    }
    case Type::custom:
    {
        object.custom.clear();
        break;
    }
    }
}