diff options
author | 2021-11-22 18:04:18 -0800 | |
---|---|---|
committer | 2021-11-22 18:04:18 -0800 | |
commit | 9e02b95c1f7310550d0ba3d89639b44b72a17de9 (patch) | |
tree | 25c7bd7b477e9a502adf640fd6abaa1df70bb538 /setup.py | |
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 'setup.py')
-rw-r--r-- | setup.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -74,7 +74,7 @@ class CMakeBuild(build_ext): if not extdir.endswith(os.path.sep): extdir += os.path.sep - r_dim = re.search(r'warpx_(2|3|rz)(?:d*)', ext.name) + r_dim = re.search(r'warpx_(1|2|3|rz)(?:d*)', ext.name) dims = r_dim.group(1).upper() cmake_args = [ @@ -189,7 +189,7 @@ WARPX_PRECISION = env.pop('WARPX_PRECISION', 'DOUBLE') WARPX_PSATD = env.pop('WARPX_PSATD', 'OFF') WARPX_QED = env.pop('WARPX_QED', 'ON') WARPX_QED_TABLE_GEN = env.pop('WARPX_QED_TABLE_GEN', 'OFF') -WARPX_DIMS = env.pop('WARPX_DIMS', '2;3;RZ') +WARPX_DIMS = env.pop('WARPX_DIMS', '1;2;3;RZ') BUILD_PARALLEL = env.pop('BUILD_PARALLEL', '2') BUILD_SHARED_LIBS = env.pop('WARPX_BUILD_SHARED_LIBS', 'OFF') @@ -228,7 +228,7 @@ else: # for CMake -cxx_modules = [] # values: warpx_2d, warpx_3d, warpx_rz +cxx_modules = [] # values: warpx_1d, warpx_2d, warpx_3d, warpx_rz cmdclass = {} # build extensions # externally pre-built: pick up pre-built WarpX libraries @@ -276,7 +276,7 @@ setup( # CMake: self-built as extension module ext_modules=cxx_modules, cmdclass=cmdclass, - # scripts=['warpx_2d', 'warpx_3d', 'warpx_rz'], + # scripts=['warpx_1d', 'warpx_2d', 'warpx_3d', 'warpx_rz'], zip_safe=False, python_requires='>=3.6, <3.10', # tests_require=['pytest'], |