From 5761b4bf998eab84ea0f7e4b132026593f3ddf9f Mon Sep 17 00:00:00 2001 From: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Date: Tue, 20 Sep 2022 16:28:39 -0700 Subject: PSATD: More Options for Time Dependency of J, Rho (#3242) * Rename PsatdAlgorithm as PsatdAlgorithmJConstantInTime * Add New Inputs: psatd.J_in_time, psatd.rho_in_time * Update PSATD Classes * Fix Bug for FDTD Build * Fix Warning for RZ PSATD Build * Fix Multi-J Loop w/ J Constant in Time * Clean up * Fix Error Message * Fix Time of Charge Deposition for Rho Linear * Add 3D Langmuir CI Tests w/ Multi-J Algo * Fix Checksums of New CI Tests * Remove Extra CI Tests (added in #3363) * Fix CI Tests w/ Multi-J PSATD * Add Docs for New Input Parameters * Galilean/Comoving PSATD Not Compatible w/ J Linear --- Source/Utils/WarpXAlgorithmSelection.H | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Source/Utils/WarpXAlgorithmSelection.H') diff --git a/Source/Utils/WarpXAlgorithmSelection.H b/Source/Utils/WarpXAlgorithmSelection.H index ba752e012..97dd3b89f 100644 --- a/Source/Utils/WarpXAlgorithmSelection.H +++ b/Source/Utils/WarpXAlgorithmSelection.H @@ -83,6 +83,20 @@ struct GatheringAlgo { }; }; +struct JInTime { + enum { + Constant = 0, + Linear = 1 + }; +}; + +struct RhoInTime { + enum { + Linear = 1, + Quadratic = 2 + }; +}; + /** Strategy to compute weights for use in load balance. */ struct LoadBalanceCostsUpdateAlgo { -- cgit v1.2.3