aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2019-10-25 12:09:24 +0200
committerGravatar Luca Fedeli <luca.fedeli@cea.fr> 2019-10-25 12:09:24 +0200
commit06ff9be518f86d73b7fd8056676e9a6c49b83f08 (patch)
tree18302f92609a4d6101d9a8088312e08faa265a63 /Source/Utils
parente723d2f78b40dae713fabfebe15fdecbcd4e4296 (diff)
parentd37100ff5f6eafd30167c463ca107dff10dbd9f4 (diff)
downloadWarpX-06ff9be518f86d73b7fd8056676e9a6c49b83f08.tar.gz
WarpX-06ff9be518f86d73b7fd8056676e9a6c49b83f08.tar.zst
WarpX-06ff9be518f86d73b7fd8056676e9a6c49b83f08.zip
Merge branch 'qed_bw_qs_factory_class' into qed_evolve_optical_depth
Diffstat (limited to 'Source/Utils')
-rw-r--r--Source/Utils/WarpXAlgorithmSelection.H4
-rw-r--r--Source/Utils/WarpXAlgorithmSelection.cpp5
2 files changed, 5 insertions, 4 deletions
diff --git a/Source/Utils/WarpXAlgorithmSelection.H b/Source/Utils/WarpXAlgorithmSelection.H
index 269171a5f..7d26e7af5 100644
--- a/Source/Utils/WarpXAlgorithmSelection.H
+++ b/Source/Utils/WarpXAlgorithmSelection.H
@@ -34,9 +34,9 @@ struct ChargeDepositionAlgo {
};
struct GatheringAlgo {
- // Only the Standard algorithm is implemented
enum {
- Standard = 0
+ EnergyConserving = 0,
+ MomentumConserving
};
};
diff --git a/Source/Utils/WarpXAlgorithmSelection.cpp b/Source/Utils/WarpXAlgorithmSelection.cpp
index be9cdd118..4b66a0809 100644
--- a/Source/Utils/WarpXAlgorithmSelection.cpp
+++ b/Source/Utils/WarpXAlgorithmSelection.cpp
@@ -34,8 +34,9 @@ const std::map<std::string, int> charge_deposition_algo_to_int = {
};
const std::map<std::string, int> gathering_algo_to_int = {
- {"standard", GatheringAlgo::Standard },
- {"default", GatheringAlgo::Standard }
+ {"energy-conserving", GatheringAlgo::EnergyConserving },
+ {"momentum-conserving", GatheringAlgo::MomentumConserving },
+ {"default", GatheringAlgo::EnergyConserving }
};