aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/WarpXUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Utils/WarpXUtil.cpp')
-rw-r--r--Source/Utils/WarpXUtil.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Utils/WarpXUtil.cpp b/Source/Utils/WarpXUtil.cpp
index e9cb6e34f..775b591a7 100644
--- a/Source/Utils/WarpXUtil.cpp
+++ b/Source/Utils/WarpXUtil.cpp
@@ -241,6 +241,9 @@ WarpXParser makeParser (std::string const& parse_function, std::vector<std::stri
} else if (std::strcmp(it->c_str(), "epsilon0") == 0) {
parser.setConstant(*it, PhysConst::ep0);
it = symbols.erase(it);
+ } else if (std::strcmp(it->c_str(), "mu0") == 0) {
+ parser.setConstant(*it, PhysConst::mu0);
+ it = symbols.erase(it);
} else if (std::strcmp(it->c_str(), "clight") == 0) {
parser.setConstant(*it, PhysConst::c);
it = symbols.erase(it);