aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/WarpXAlgorithmSelection.cpp
diff options
context:
space:
mode:
authorGravatar Revathi Jambunathan <41089244+RevathiJambunathan@users.noreply.github.com> 2021-04-15 00:00:44 -0700
committerGravatar GitHub <noreply@github.com> 2021-04-15 00:00:44 -0700
commit23021844da6185d6fa28fc81bf84b15f7e566fb2 (patch)
treeb5657c3215d2889611dc5682cf6b1b65f2d355a3 /Source/Utils/WarpXAlgorithmSelection.cpp
parent6b8894a72a5109ddfef5260192fb8111f5d6ee13 (diff)
downloadWarpX-23021844da6185d6fa28fc81bf84b15f7e566fb2.tar.gz
WarpX-23021844da6185d6fa28fc81bf84b15f7e566fb2.tar.zst
WarpX-23021844da6185d6fa28fc81bf84b15f7e566fb2.zip
Boundary Condition : Interface with existing PML (#1768)
* Read boundary and set periodicity, enumerate BC types, added support for periodic * separate particle and field boudnary structs * Update comment for particle struct * default pml is 0, and reset lo, hi, and do_pml to 1 * turn on pml for MR * eol * remove duplication * resolving commit conflict * explicitly setting pml_HI_MR * default pml lo and hi to 0, and set MR pml lo and hi to the domain values if fine patch coincides with domain boundary * set lo and hi flag for pml when do pml = 1 and domain is non-periodic * remove commented line * add doc * Update Source/Utils/WarpXUtil.cpp remove empty line * Apply suggestions from code review Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> * Update Docs/source/usage/parameters.rst lower case for input * add do_pml flags for IonAcc2d and PlasmaMirror * add pml = true in PICMI for gaussian beam and plasma acceleration * pml is the default field BC * adding temporary defaults for field and particle BC using periodicity * fix temp initialization * set default to pec if input sets pml to 0 * fix typo * logic for both old and new pml interface * fix eol * change examples to original pml input with default values * Update Docs/source/usage/parameters.rst Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> * fix comments Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> * Docs: fix .rst list Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com>
Diffstat (limited to 'Source/Utils/WarpXAlgorithmSelection.cpp')
-rw-r--r--Source/Utils/WarpXAlgorithmSelection.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Utils/WarpXAlgorithmSelection.cpp b/Source/Utils/WarpXAlgorithmSelection.cpp
index 302060b1a..14d1bea64 100644
--- a/Source/Utils/WarpXAlgorithmSelection.cpp
+++ b/Source/Utils/WarpXAlgorithmSelection.cpp
@@ -76,11 +76,11 @@ const std::map<std::string, int> MacroscopicSolver_algo_to_int = {
};
const std::map<std::string, int> FieldBCType_algo_to_int = {
- {"pec", FieldBoundaryType::PEC},
- {"periodic", FieldBoundaryType::Periodic},
{"pml", FieldBoundaryType::PML},
+ {"periodic", FieldBoundaryType::Periodic},
+ {"pec", FieldBoundaryType::PEC},
{"pmc", FieldBoundaryType::PMC},
- {"default", FieldBoundaryType::PEC}
+ {"default", FieldBoundaryType::PML}
};
const std::map<std::string, int> ParticleBCType_algo_to_int = {