From b739ed9ccdbfeb878ead2a9d2a9ad61fbcfce35e Mon Sep 17 00:00:00 2001 From: Revathi Jambunathan <41089244+RevathiJambunathan@users.noreply.github.com> Date: Tue, 13 Jul 2021 00:27:49 -0700 Subject: Interface silver mueller (#2051) * interface silvermueller with refactored boundary interface * add interface in silver mueller input files * define first and second half for EvolveB * add do_pml parse snce RZ needs do_pml to be st to false * Silver-Mueller boundary condition in docs * add firsthalf in ApplyBfieldBoundary within PushPSATD as only first first half is used to apply silvermueller * CallSilverMueller once for all boundaries * remove unused do silvermueller flag * fix typo in input file * Apply suggestions from code review Co-authored-by: Remi Lehe * abort message if silver-mueller is not selected on all valid boundaries * fix typo * fix eol * remove ifdef from inside the Assert message * check silver-mueller selection after reading all boundaries Co-authored-by: Remi Lehe --- Source/Utils/WarpXAlgorithmSelection.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/Utils/WarpXAlgorithmSelection.cpp') diff --git a/Source/Utils/WarpXAlgorithmSelection.cpp b/Source/Utils/WarpXAlgorithmSelection.cpp index e250a92c1..085d3e777 100644 --- a/Source/Utils/WarpXAlgorithmSelection.cpp +++ b/Source/Utils/WarpXAlgorithmSelection.cpp @@ -86,6 +86,7 @@ const std::map FieldBCType_algo_to_int = { {"pec", FieldBoundaryType::PEC}, {"pmc", FieldBoundaryType::PMC}, {"damped", FieldBoundaryType::Damped}, + {"absorbing_silver_mueller", FieldBoundaryType::Absorbing_SilverMueller}, {"none", FieldBoundaryType::None}, {"default", FieldBoundaryType::PML} }; -- cgit v1.2.3