From 628899258454f55d72c277969a84929f1c1caa9d Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Mon, 7 Jun 2021 21:32:36 +0200 Subject: add m_u (#2003) --- Source/Utils/WarpXUtil.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/Utils/WarpXUtil.cpp') diff --git a/Source/Utils/WarpXUtil.cpp b/Source/Utils/WarpXUtil.cpp index 775b591a7..9682554d7 100644 --- a/Source/Utils/WarpXUtil.cpp +++ b/Source/Utils/WarpXUtil.cpp @@ -238,6 +238,9 @@ WarpXParser makeParser (std::string const& parse_function, std::vectorc_str(), "m_p") == 0) { parser.setConstant(*it, PhysConst::m_p); it = symbols.erase(it); + } else if (std::strcmp(it->c_str(), "m_u") == 0) { + parser.setConstant(*it, PhysConst::m_u); + it = symbols.erase(it); } else if (std::strcmp(it->c_str(), "epsilon0") == 0) { parser.setConstant(*it, PhysConst::ep0); it = symbols.erase(it); -- cgit v1.2.3