diff options
author | 2021-11-22 18:04:18 -0800 | |
---|---|---|
committer | 2021-11-22 18:04:18 -0800 | |
commit | 9e02b95c1f7310550d0ba3d89639b44b72a17de9 (patch) | |
tree | 25c7bd7b477e9a502adf640fd6abaa1df70bb538 /Source/Filter/NCIGodfreyFilter.cpp | |
parent | e55fef18dea27108247024fffba4fccd84206ac2 (diff) | |
download | WarpX-9e02b95c1f7310550d0ba3d89639b44b72a17de9.tar.gz WarpX-9e02b95c1f7310550d0ba3d89639b44b72a17de9.tar.zst WarpX-9e02b95c1f7310550d0ba3d89639b44b72a17de9.zip |
Python: Start 1D Support (#2582)
* Python: Start 1D Support
Start supporting 1D builds in Python.
* Fix 1D: PML FillZero unused
... since PMLs are not yet supported in 1D.
* BeamRelevant: Fix unused p_pos0
* FromTXYEFileLaserProfile: Not Impl in 1D
* QED Schwinger: 1D not Implemented
Fix unused warnings, add aborts.
* 1D RealVect/IntVect: Initialization
Use explicit scalar constructors, no braces.
Fix warning in clang 10.
* 1D NCI Filter: Fix unused members & Init
Unimplemented, but throws warnings.
* PSATD: 1D not Implemented
- remove compile warnings
- start porting some parts
* NCIGodfreyFilter: Clean up 2D & Else
Diffstat (limited to 'Source/Filter/NCIGodfreyFilter.cpp')
-rw-r--r-- | Source/Filter/NCIGodfreyFilter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Filter/NCIGodfreyFilter.cpp b/Source/Filter/NCIGodfreyFilter.cpp index fa88eb854..5237a7b3b 100644 --- a/Source/Filter/NCIGodfreyFilter.cpp +++ b/Source/Filter/NCIGodfreyFilter.cpp @@ -23,19 +23,18 @@ using namespace amrex; NCIGodfreyFilter::NCIGodfreyFilter(godfrey_coeff_set coeff_set, amrex::Real cdtodz, bool nodal_gather){ -#if (AMREX_SPACEDIM >= 2) // Store parameters into class data members m_coeff_set = coeff_set; m_cdtodz = cdtodz; m_nodal_gather = nodal_gather; + // NCI Godfrey filter has fixed size, and is applied along z only. #if (AMREX_SPACEDIM == 3) stencil_length_each_dir = {1,1,5}; slen = {1,1,5}; -#else +#elif (AMREX_SPACEDIM == 2) stencil_length_each_dir = {1,5}; slen = {1,5,1}; -#endif #else amrex::ignore_unused(coeff_set, cdtodz, nodal_gather); amrex::Abort("NCIGodfreyFilter not implemented in 1D!"); |