diff options
author | 2021-05-25 01:27:37 +0200 | |
---|---|---|
committer | 2021-05-24 16:27:37 -0700 | |
commit | c18569f0a67bdf5f33c8b0ecab147dfb7a52bff5 (patch) | |
tree | 653935717161876b48aec64fa070fabba110f9d4 /Source/Utils/WarpXUtil.cpp | |
parent | baaf307780c4caecfb98f88faec878a7afa9d7d9 (diff) | |
download | WarpX-c18569f0a67bdf5f33c8b0ecab147dfb7a52bff5.tar.gz WarpX-c18569f0a67bdf5f33c8b0ecab147dfb7a52bff5.tar.zst WarpX-c18569f0a67bdf5f33c8b0ecab147dfb7a52bff5.zip |
Add generic field reduction reduced diag (#1944)
* Add generic field reduction reduced diag
* Make ComputeFieldReduction public
* Apply suggestions from code review
* Apply suggestions from Luca and Edoardo
* Fix syntax error
* Fix typo in example input file
Co-authored-by: Luca Fedeli <luca.fedeli@for.unipi.it>
Diffstat (limited to '')
-rw-r--r-- | Source/Utils/WarpXUtil.cpp | 3 |
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); |