aboutsummaryrefslogtreecommitdiff
path: root/Source/Python/WarpX_py.cpp (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2020-10-14[mini-PR] Flag to diable all diagnostics. (#1427)Gravatar Revathi Jambunathan 2-3/+10
* turn off diagnostics * document input to enable/disable diagnostics * Update Docs/source/running_cpp/parameters.rst
2020-10-13fix bug in CMakeLists.txt (#1431)Gravatar Luca Fedeli 1-1/+1
2020-10-13prevent compilation of picsar qed tests (#1432)Gravatar Luca Fedeli 1-1/+1
2020-10-13[mini-PR] Fix warnings in QED module (#1433)Gravatar Luca Fedeli 3-1/+7
* fix warning concerning comparison of int and unsigned int * fix warning concerning unused variables
2020-10-12[mini-PR] Flag to turn off species output in diags (#1426)Gravatar Revathi Jambunathan 2-0/+14
* write species flag to toggle particle output * document write_species * Update Source/Diagnostics/Diagnostics.cpp * write species flag to toggle particle output * document write_species * Update Source/Diagnostics/Diagnostics.cpp
2020-10-12CI: ICC/ICPC oneAPI beta09 (#1425)Gravatar Axel Huebl 1-2/+1
Try to update icc/icpc tests to oneAPI beta09.
2020-10-12picmi - do name mangling on expression variables to ensure their uniqueness ↵Gravatar David Grote 2-30/+89
(#1361) Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
2020-10-12Separate rho per species diagnostics from particle output (#1407)Gravatar Edoardo Zoni 5-91/+67
* Separate rho per species diagnostics from particle output * Update input file of CI test dumping rho per species * Update documentation * Use m_output_species_names and m_all_species_names * Use std::string::rfind and improve error message * Rename m_all_species to m_output_species for consistency
2020-10-09fix a couple of unused variables warnings (#1423)Gravatar Luca Fedeli 2-0/+5
2020-10-09Fix error with Schwinger in 2D (#1424)Gravatar NeilZaim 1-1/+1
2020-10-08Readme: Azure Badge (#1421)Gravatar Axel Huebl 1-1/+1
Change old Travis-CI badge to new Azure Pipelines badge.
2020-10-08Add laser phase to gaussian profile (#1155)Gravatar Igor Andriyash 4-1/+8
* added the phase argument for the gaussian laser * removed signature * added laser phase to picmi api * added doc string for phi0 * Update parameters.rst typo fix Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
2020-10-07RZ + single precision fix (#1417)Gravatar Michael E Rowan 3-15/+29
* RZ_SP fix * RZ SP fix * Fix cufft for single precision RZ. Co-authored-by: Weiqun Zhang <weiqunzhang@lbl.gov>
2020-10-07rocFFT support (#1410)Gravatar Weiqun Zhang 8-27/+270
* rocFFT support * rocfft in 2d rz PSATD solver
2020-10-07Do not store first Fornberg coefficient (#1419)Gravatar Edoardo Zoni 2-31/+36
2020-10-05PICMI: read flag for laser continuous injection (#1358)Gravatar Edoardo Zoni 2-2/+4
* PICMI: read flag for laser continuous injection * Simplify assignment of do_continuous_injection * Update PICMI version Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
2020-10-05CI: Nvidia Apt Broken (CUDA) (#1412)Gravatar Axel Huebl 1-1/+0
Try to work-around the newly broken Nvidia apt repos for CUDA 11.0. - Refs.: https://gitlab.com/nvidia/container-images/cuda/ - Nvidia bug report: 3144329
2020-10-05Add option to do collisions every # time steps (#1251)Gravatar Yinjian Zhao 7-10/+27
* Update inputs_3d * Update inputs_2d * Add ndt * Doc * Doc * Update inputs_3d * Update inputs_2d Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
2020-10-05Replace some ".reset(new )" with " = make_unique" (#1398)Gravatar Luca Fedeli 1-79/+79
* replace some reset(new ) with make_unique * fixed bug
2020-10-02CMake: Rename AMReX Option for SENSEI (#1403)Gravatar Axel Huebl 1-2/+2
This reflects an upstream change in AMReX' CMake options.
2020-10-02Split resampling TinyProfiler entry into 2 (#1390)Gravatar NeilZaim 2-2/+13
2020-10-02Fix some warnings for PSATD builds (#1401)Gravatar Edoardo Zoni 12-53/+39
* Fix warnings for 2D/3D PSATD builds * Fix warnings for RZ PSATD builds * Update FIXME comment: no known bug * Fix remaining warning for RZ PSATD builds
2020-10-02[Tiny] use_fdtd_nci_corr set to false for RZ (#1405)Gravatar Lígia Diana Amorim 2-1/+5
* Made particles.use_fdtd_nci_corr false for RZ * Added AMREX ALWAYS ASSERT * Fixed AMREX ASSERT * Revert "Fixed AMREX ASSERT" This reverts commit 902fcaabbf0c01b75cd7b38e7fd198e75cf1703d. * Revert "Added AMREX ALWAYS ASSERT" This reverts commit 7c56270730d0e1e4c9a2ab705cc0027e7ecc1a79. * Fixed confusion between commits
2020-10-02Plot raw fields: fix bugs for rho and F data (#1392)Gravatar Edoardo Zoni 2-15/+38
* Plot raw fields: fix bug for rho data * Add query for <diag_name>.plot_raw_rho * Check if MultiFabs are allocated and fix bug for coarse patch * Add same check for raw F data
2020-10-02[mini] Add clean error message when user makes a typo in fields to output ↵Gravatar NeilZaim 1-0/+3
(#1409) * Add clean error message when user makes a typo in fields to output * Add a space
2020-10-02[mini-PR] Fix a couple of warnings (#1408)Gravatar Luca Fedeli 2-1/+4
* fixed unused variable warning * fixed unwanted copy
2020-10-01RZ spectral: add default value of i_comp in scalar transforms (#1404)Gravatar David Grote 1-2/+2
2020-10-01Docs: typo home FS LLNLGravatar Axel Huebl 2-2/+2
2020-10-01Doc: LLNL Setups (#1394)Gravatar Axel Huebl 6-0/+308
* [Draft] Doc: Lassen (LLNL) Document installation and usage on Lassen (LLNL). * [Draft] Doc: Quartz (LLNL) Document installation and usage on Quartz (LLNL).
2020-09-30Use fewer guard cells for deposition (#1368)Gravatar Edoardo Zoni 5-35/+75
* Use fewer guard cells for deposition * Update some CI benchmarks * Revert "Update some CI benchmarks" This reverts commit 2f40062557d75e3f6b2d3ba284332b8a92a0d404. * Check if shapes and guard cells are compatible only for rho * Do not allocate one extra guard cell for J * Add more relaxed check on shapes and guard cells for J
2020-09-30Remove instability on PML with do_nodal (#1379)Gravatar NeilZaim 1-8/+8
* Increase size of sigma_star by 1 in nodal mode * Add do_nodal to FabFactory<SigmaBox> * Add ifdef WARPX_USE_PSATD directives * Increase size of sigma_star arrays by one regardless of nodal state
2020-09-30CI: Output CPU Type (#1393)Gravatar Axel Huebl 1-0/+1
Since our CI is cloud-based, we can get various kinds of CPUs in different runs. For machine-precision tests, I got the feeling that some tests that rely heavily on exact numbers are overly strict with respect to guarantees between various CPU generations, esp. since we rely on fastmath. This will output the CPU type at the beginning of runs, so we can find out more when tests fail with "checksum" (output data fingerprint) errors.
2020-09-30removed extra ; (#1397)Gravatar Luca Fedeli 1-34/+34
2020-09-29Minor modification of Visualization.ipynb (#1383)Gravatar Yinjian Zhao 1-5/+7
* Update inputs_3d * Apply suggestions from code review Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
2020-09-29Implement intervals parser for reduced diagnostics (#1389)Gravatar NeilZaim 10-12/+17
2020-09-29Fix error for FieldMaximum diag in 2D (#1391)Gravatar NeilZaim 1-2/+2
2020-09-29Apply style conventions to LaserParticleContainer (#1386)Gravatar Luca Fedeli 2-115/+115
* apply style conventions to LaserParticleContainer * fix bug * apply style convention to another variable
2020-09-28Add option to only resample cells with high enough number of macroparticles ↵Gravatar NeilZaim 4-7/+22
(#1385) * Add option to only resample cells with high enough number of macroparticles * Apply suggestions from code review Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
2020-09-28Laser-Ion Acceleration Example (#1204)Gravatar Axel Huebl 5-4/+297
* Checksum: Add laser-ion acc. * Laser-Ion Acceleration Example Add a new example for laser-ion acceleration. * Load Balancing: Add Best Practices Add newly found best practices for load balancing. M. Rowan et al., submitted to SC20, 2020 :) Co-authored-by: Michael E Rowan <38045958+mrowan137@users.noreply.github.com> * Laser-Ion Acceleration Example Update New blocking factor needs new reduced extends. * Checksum: Update laser-ion acc. * Finalize Reference Densities Co-authored-by: Tools <warpx@lbl.gov> Co-authored-by: Michael E Rowan <38045958+mrowan137@users.noreply.github.com>
2020-09-28New Diagnostics: FieldMaximum (#988)Gravatar NeilZaim 11-30/+386
* Add MaxField reduced diagnostic * Add test of the MaxField reduced diag * Minor modifications * Fix test input file * Use read_raw_data.py module in test * Merge FieldEnergy and MaxField reduced diags * Add specific error message if old syntax is used * Fix column header numbers * Update copyright * Change name of diag in input file from Field to FieldReduced * Add comment when allocating MultiFAB * Add BackwardCompatibility () function * Update Source/Diagnostics/ReducedDiags/MultiReducedDiags.cpp Co-authored-by: MaxThevenet <mthevenet@lbl.gov> * Add FieldReduced.cpp in CMakeLists.txt * Apply suggestions from code review Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> * Remove magic numbers and update MFIter construct * Apply suggestions from code review Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> * Fix typo * Do a reduction on the fly instead of allocating a MultiFAB * Interpolate fields to cell center before computing maximum value of |E| and |B| * Reseparate FieldReduced into FieldEnergy and MaxField * Fix few typos * Replace MaxField with FieldMaximum Co-authored-by: MaxThevenet <mthevenet@lbl.gov> Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
2020-09-25Doc: Cori MPI Thread Multiple (#1376)Gravatar Axel Huebl 2-0/+6
Thread multiple support is not the default on Cori. One needs to set this with an environment variable.
2020-09-25Use amrex::ParallelForRNG for random number generation (#1373)Gravatar Weiqun Zhang 23-138/+147
* Use amrex::ParallelForRNG for random number generation In order to support RNG on non-Nvidia GPUs, we need to use amrex::ParallelForRNG for kernels with calls to AMReX random number generation functions. * missing a RandomEngine argument
2020-09-25Add CI test and documentation for leveling thinning algorithm (#1327)Gravatar NeilZaim 16-22/+322
* First working version of tests * Add comments to test * Add test in WarpX-test.ini and initial checksum json file * Add resampling to input parameters doc * Uncomment lines about checksum in analysis script + Fix minor typos * Add momentum in plotfiles (for checksum) + Fix minor typoes * Remove particle_theta from checksum json file * Remove rho from checksum json file * Fix syntax error in checksum json file * Add benchmark values * Update Docs/source/running_cpp/parameters.rst Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> * Have one Resampling object per species Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
2020-09-24RZ spectral current correction and Galilean (#1216)Gravatar David Grote 19-48/+848
* Added stub for current correction in RZ spectral solver * Fixed comments in RZ spectral for current correction stub * Modified automated test for Galilean PSATD (#1033) * Impemented current correction in RZ spectral * Implementation Galilean version of RZ spectral solver * For RZ spectral, do forward and backward transform with current correction * Big fix in DivEFunctor.cpp for RZ spectral * Added RZ rho diagnostic for saving the modes * Implemented fft_periodic_single_box for RZ spectral * Moved routines from SpectralSolverRZ.H to .cpp * Added hook for VayDeposition in GalileanPsatdAlgorithmRZ * Bug fix in DivEFunctor * Fixes and cleanup for GalileanPsatdAlgorithmRZ * Fix line spacing in SpectralSolverRZ.H * Fix factor 1/2 in update of Ep_m * Fix factor 1/2 in update of Em_m * Fix sign error in current correction in GalileanPsatdAlgorithmRZ.cpp Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> * Add Langmuir RZ PSATD test with current correction * Add Galilean tests with/without current correction * For RZ psatd, simplified copy for forward transform * Added GalileanPsatdAlgorithmRZ.cpp to CMakeLists * Minor cleanup in RZ spectral solver * In GalileanPsatdAlgorithmRZ.cpp use member initialization for m_v_galilean Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> * Added some _rt to GalileanPsatdAlgorithmRZ.cpp Co-authored-by: Olga Shapoval <30510597+oshapoval@users.noreply.github.com> Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Co-authored-by: Edoardo Zoni <ezoni@lbl.gov>
2020-09-24remove unused functions from MultiParticleContainer (#1382)Gravatar Andrew Myers 2-12/+0
2020-09-24Summit: Doc Modules for RZ+PSATD (#1377)Gravatar Axel Huebl 1-0/+5
This provide another two user-managed software modules: BlasPP and LapackPP. This saves us and our users from manually installing them when building WarpX with PSATD support in RZ geometry. Tested with: ``` cmake .. -DWarpX_OPENPMD=ON -DWarpX_PSATD=ON -DWarpX_DIMS=RZ make -j 16 ```
2020-09-23Option to have absorbing BC for particles, regardless of field BC (#1334)Gravatar MaxThevenet 6-0/+82
* option to have absorbing BC for particles, regarless of field BC * document input parameter particles.absorbing_bc * minor, just add a small comment * clarify doc and use better input parameter * clarify documentation
2020-09-23SYCL 2020/DPC++: C++17 (#1375)Gravatar Axel Huebl 1-1/+5
Request C++17 in GNUmake for DPC++ builds. This is now required since we use MKL headers that are in C++17 and since SYCL 2020 and later rely on C++17 or newer. (In fact, `dpcpp` beta07 and newer already defaulted to C++17.) This updates the explicit GNUmake flag (request exactly one standard). The CMake flags in WarpX are "request C++14 or newer" and AMReX CMake files push those up to "request C++17 or newer" for DPC++.
2020-09-23Dump rho per species (#1294)Gravatar Edoardo Zoni 8-20/+117
* Add strings rho_<species_name> to m_varnames * Initialize rho functor for each species * Get charge density per species * Correct selection of species to dump rho * Clear vector of string used to parse input * Add missing Doxygen parameter * Update documentation * Fix bug introduced in RZ geometry * Add includes * Rename variables as species_variables * Replace 0 with 0u (unsigned) * Simplify using range-based loops * Use range-checked .at() to access vector elements * Improve comments
2020-09-24[mini-PR] Fix a couple of new warnings (#1356)Gravatar Luca Fedeli 2-12/+14
* fixed non portable embedding of a directive within macro arguments * removed unused variables * Update Source/Particles/ParticleCreation/FilterCreateTransformFromFAB.H Co-authored-by: NeilZaim <49716072+NeilZaim@users.noreply.github.com> * Update Source/Particles/ParticleCreation/FilterCreateTransformFromFAB.H Co-authored-by: NeilZaim <49716072+NeilZaim@users.noreply.github.com> * Update Source/Particles/ParticleCreation/FilterCreateTransformFromFAB.H Co-authored-by: NeilZaim <49716072+NeilZaim@users.noreply.github.com> * fixed style * Update Source/Particles/ParticleCreation/FilterCreateTransformFromFAB.H Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> * Update Source/Particles/ParticleCreation/FilterCreateTransformFromFAB.H Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> * code cleaning * fixed bug Co-authored-by: NeilZaim <49716072+NeilZaim@users.noreply.github.com> Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>