/* Copyright 2019-2020 Axel Huebl, Maxence Thevenet, Revathi Jambunathan * Weiqun Zhang * * This file is part of WarpX. * * License: BSD-3-Clause-LBNL */ #include #include 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::custom: { object.custom.clear(); break; } } }