aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralFieldData.cpp (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2022-03-21Streamline profiling documentation (#2971)Gravatar Remi Lehe 3-49/+117
* Streamline profiling documentation * Add Updates: Full Profile, OLCF Links, Commas * Spelling of Section Titles * nsys: Add Environment Options Especially for unwritable /tmp, which happens often in HPC. * nsys: add mkdir for TMPDIR Co-authored-by: Remi Lehe <remi.lehe@normalesup.org> * Update documentation Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
2022-03-18LaserAccelection_1d: Use same build as other 1D tests (#2982)Gravatar Phil Miller 1-2/+2
2022-03-18Doc: Major Cori Update (#2978)Gravatar Axel Huebl 4-38/+38
* Doc: Major Cori Update Update Cori instructions after the major upgrade yesterday. Before using the new modules, remove the old, pre-build software: ```bash rm -rf $HOME/sw/knl $HOME/sw/haswell $HOME/sw/gpu $HOME/sw/cori_gpu ``` * Cori: Work-Around ADIOS 2.7.1 ZeroMQ Disable due to https://github.com/ornladios/ADIOS2/issues/2709 * Fix haswell/knl mismatch
2022-03-18Minimum digits for plotfile cell and particle data is 5 (#2973)Gravatar Revathi Jambunathan 1-6/+15
* minimum digits for plotfile cell and particle data is 5 * Apply suggestions from code review * Update Source/Diagnostics/BTDiagnostics.cpp * Apply suggestions from code review Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
2022-03-17Removed used of separate bc arguments (#2977)Gravatar David Grote 1-22/+18
2022-03-17Docs: Cori Python & Testing (#2969)Gravatar Axel Huebl 1-1/+55
- improve the `--force-reinstall` logic to not trigger a forced re-install of WarpX Python dependencies - install WarpX Python dependencies upfront - add a first "testing" section to show how to run `./run_tests.sh` on Cori
2022-03-17openPMD: Only Write up to Finest Level (#2970)Gravatar Axel Huebl 4-13/+31
Now that we support "dynamic" levels, we need to differentiate between the maximum allowed refinement level (maxLevel) and the currently maximum used level (finestLevel) of a simulation.
2022-03-16fix documentation with pml_has_particles instead of the old ↵Gravatar Revathi Jambunathan 1-1/+1
do_particles_in_pml (#2974)
2022-03-16RZ: Use WarpX::ncomps more consistently (#2951)Gravatar Axel Huebl 4-19/+20
* RZ: Use WarpX::ncomps more consistently We used `2*modes - 1` in many places, which is harder to follow then the variable we have. * Update Comments * Replace leftover `ncomp` -> `m_ncomps`
2022-03-16ABLASTR: Full Library (#2968)Gravatar Axel Huebl 3-12/+12
* CMake: ABLASTR as library previously only an object collection. * CMake: Fix `set_warpx_binary_name` Should only change WarpX library and app build, not the library name of ABLASTR. * Use ABLASTR_ALWAYS_ASSERT_WITH_MESSAGE Over AMReX and WarpX equivalent macros.
2022-03-15Initialize buffer data only for the required levels in the output (#2967)Gravatar Revathi Jambunathan 1-0/+8
2022-03-15[pre-commit.ci] pre-commit autoupdate (#2966)Gravatar pre-commit-ci[bot] 1-2/+2
updates: - [github.com/hadialqattan/pycln: v1.2.4 → v1.2.5](https://github.com/hadialqattan/pycln/compare/v1.2.4...v1.2.5) - [github.com/mgedmin/check-manifest: 0.47 → 0.48](https://github.com/mgedmin/check-manifest/compare/0.47...0.48) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-03-14FAQ: Forward Declarations (#2957)Gravatar Axel Huebl 2-10/+52
* FAQ: Forward Declarations * Fwd Declarations: Extend Example
2022-03-14Langmuir 2D Tests: Better Analysis Plots (#2960)Gravatar Edoardo Zoni 1-15/+24
* Langmuir 2D Tests: Better Analysis Plots * Remove Unused Import
2022-03-14FFT of J: Use Spectral Index of Correct MR Level (#2961)Gravatar Edoardo Zoni 1-8/+18
2022-03-14FFT of J: Use Correct Current w/ Current Centering (#2962)Gravatar Edoardo Zoni 1-5/+1
2022-03-14QED: Add Space in Multiline Warnings (#2956)Gravatar Axel Huebl 1-2/+2
Just a missing space we saw in the warning message between the sentences.
2022-03-13Add by-cell averages of particle properties (#2892)Gravatar Hannah Klion 15-15/+724
* Add ParticleReductionFunctor * Adds a by-cell particle average diagnostic * Averaged quantity is given by an input parser in (x,y,z,ux,uy,uz) * Coordinates in these parsers are in the WarpX convention * Users specify which species the averages are calculated for. The averages are calculated for each given species individually. * If there are no particles in a cell, the average will be zero. * add documentation for ParticleReductionFunctor * add test for cell-averaged particle diagnostics * set benchmarks for praticle_fields_diags and particle_fields_diags_single_precision * small changes to parameter docs and test script (addressing David's comments) * Apply suggestions from code review * remove unnecessary comments in python test script * remove unused variable * fixed inaccurate comments * use static_cast<int> pattern * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add comment in ParticleReductionFunctor.H * warpx.serialize_ics -> warpx.serialize_initial_conditions * AMREX_SPACEDIM to WARPX_DIM_3D and WARPX_DIM_XZ * fix compile errors from dimensionality conditionals * fix compile errors * Apply suggestions from code review * clarify docs * add include headers * update docs Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
2022-03-12Load-balancing heuristic weights: not negative by default (#2963)Gravatar Remi Lehe 2-3/+3
2022-03-11WarpX/PICSAR Version Define: File (#2959)Gravatar Axel Huebl 12-39/+83
* WarpX/PICSAR Version Define: File Move the `-D` defines that contain the latest WarpX commit to a config file. Using always the latest commit counteracts `ccache` since the signature of the compilation call changes every commit. * Avoid Rebuilding WarpX.cpp * Support WarpXVersion.H in GNU Make * AMReX: Update to latest commit Co-authored-by: Weiqun Zhang <weiqunzhang@lbl.gov>
2022-03-11ABLASTR: Move TextMsg (#2953)Gravatar Axel Huebl 13-119/+218
* ABLASTR: Move TextMsg Since this is used in a ABLASTR header, we need to compile this in ABLASTR, so ImpactX can use it as well. Otherwise we have missing symbols for that utility. * Fix typo in GNUmake * Apply Wording Update for Doxygen Co-authored-by: Luca Fedeli <luca.fedeli@for.unipi.it>
2022-03-10Default CFL to 0.999 instead of 0.7 (#2940)Gravatar Maxence Thévenet 3-6/+6
* default CFL to 0.999 instead of 0.7, and update doc * Apply suggestions from code review * set CFL explicitly in tests to avoid failing tests * set cfl to 0.7 in CI test ion_stopping Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
2022-03-10CMake: pip_install w/o MPI (#2950)Gravatar Axel Huebl 1-2/+3
We automatically trigger a dependency to `mpi4py` when MPI is used. This makes sure this requirement stays consistent.
2022-03-10Clean Pip Staging Directory (#2954)Gravatar Axel Huebl 2-4/+17
* Clean Pip Staging Directory The distutils staging (`build` -> `_tmppythonbuild`) directory that pip uses to collect build artifacts is not by default cleaned between multiple `pip` runs. This can be confusing when we recompile, because old `libwarpx*` files can be still in it that are not present in our own `build/lib/`. This cleans that staging directory before builds now. It also sets the whole `build_base` so that no artifact lands in the default, which was `build/`. So far, `bdist.linux-x86_64/` still was out-of-tree. * Python_background_mcc_1d: Add CMake Options Add missing CMake options in `WarpX-tests.ini`. This must have been merged in parallel to when we modernized our regression tests end of last year. #2556
2022-03-10Clean up the use of ndt for collisions (#2944)Gravatar David Grote 11-32/+28
* Clean up the use of ndt for collisions * Update BackgroundStopping to match changes
2022-03-10fix ambiguity in Parser from amrex and ExternalFieldInitType (#2955)Gravatar Revathi Jambunathan 2-4/+4
2022-03-09allow diagnostic data_list to be None (#2949)Gravatar Ryan Sandberg 1-88/+91
2022-03-09move MCC modules to a new folder inside "Particles/Collision/" (#2945)Gravatar Roelof Groenewald 10-8/+15
2022-03-08Add background stopping (#2884)Gravatar David Grote 12-15/+771
* Added BackgroundStopping * Added BackgroundStopping CI test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * For background stopping, allowed parsed background density and temperature * Updated background stopping CI test * For background stopping, temperature is specified in Kelvin * Added documentation for background stopping * Added ion stopping plus other fixes * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Made dt level dependent * Revert "Made dt level dependent" This reverts commit 1aed9654d24ff1411a7b5fd8558891e0688f0032. The collisions should be done using the time step of the lowest level. * Add a comment about dt * Add const declaration * Added comment regarding stopped particle * Several fixes and clean up of the documentation * Update CI benchmark Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-03-08Make error and info messages visually uniform (#2939)Gravatar Luca Fedeli 70-354/+586
* initial work to add msg formatter * wip * replace AMREX_ALWAYS_ASSERT_WITH_MESSAGE with WarpX equivalent
2022-03-07doxygen comments for static variables in WarpX class (#2935)Gravatar Revathi Jambunathan 1-5/+41
2022-03-07properly handle MCC collision subcycling (#2934)Gravatar Roelof Groenewald 3-3/+10
2022-03-07AMReX: Update latest commit (#2932)Gravatar Axel Huebl 5-5/+5
2022-03-05CCache: Generalize Linux PathsGravatar Axel Huebl 5-13/+39
Will work for old (upper) and new (lower) versions of ccache, so we don't have to be on the look out when we update. ``` path: | ~/.ccache ~/.cache/ccache ```
2022-03-05Fix Levels when reading raw data from a MR simulation (#2929)Gravatar Prabhat Kumar 1-1/+1
2022-03-04CI: CUDA/HIP Modernize CCache LocationGravatar Axel Huebl 2-5/+5
`~/.ccache` -> `~/.cache/ccache`
2022-03-04CI: Newer CCache for HIP (#2928)Gravatar Axel Huebl 4-3/+24
* CI: Newer CCache for HIP * CI: CCache for GNUmake CUDA
2022-03-04WarpX Static Attributes: Clean Up Types (#2922)Gravatar Edoardo Zoni 2-34/+34
* WarpX Static Attributes: Clean Up Types * Use true/false For Booleans
2022-03-04CI: Newer CCache for CUDA (#2927)Gravatar Axel Huebl 7-5/+59
* CI: Newer CCache for CUDA ccache on Ubuntu 18 and 20 is << v4.2 * pip: also use ccache Modern `pip` does not build in a random temporary dir anymore but in `$PWD/build`. With absolute paths established, we can use `ccache` to speed up this big build as well. * macOS: Fix `cache_dir` Not in $HOME.
2022-03-04Print Fundamental PIC Parameters to Stdout (#2753)Gravatar Olga Shapoval 2-0/+226
* Added PrintMainPICparameters() function to print out fundamental PIC parameters in the command line. * Cleaning. * More cleaning. * Fixed and moved `PrintMainPICparameters()` call after `CheckGuardCells()` call. * Fixed style. * Fixed style: added 'D' (shortcut for 'dimension') * Clean up. * Some more clean up. * Cnanges in `WarpX::PrintMainPICparameters ()`: * Added message that in order to use Yee/CKC/ECT solver, WarpX needs to be built with FDTD solver. * Some more clean up. * Remove verbose else branch ... if PSATD is compiled but not used
2022-03-03Rename `serialize_ics` as `serialize_initial_conditions` (#2925)Gravatar Edoardo Zoni 46-77/+86
* Rename `serialize_ics` as `serialize_initial_conditions` * Add Backward Compatibility Check
2022-03-03Refactor Vay Deposition Functions (#2885)Gravatar Edoardo Zoni 24-163/+162
* Refactor Vay Deposition Functions * Use rho Index Type for FFT of D * Improve Doxygen Strings
2022-03-03Macroscopic Maxwell solver: do not update fields in EB (stair-case ↵Gravatar Remi Lehe 6-10/+72
approximation) (#2899) * Macroscopic Maxwell solver: do not update fields in EB * Correct unused variable * Add test with macroscopic solver * Add automated test
2022-03-03Release 22.03 (#2912)Gravatar Axel Huebl 11-13/+13
* AMReX: 22.03 * PICSAR: 22.03 * WarpX: 22.03
2022-03-03file_min_digits: 5->6 (#2385)Gravatar Axel Huebl 20-44/+49
* file_min_digits: 5->6 100k+ step runs are quite common in WarpX. To simplify post-processing scripts, increase the default to pad to 6 digits. This might break some hand-written scripts that use `?????` wild-cards over `*` wildcards in regex and thus need to be updated. But it at the same time simplifies regexes for analysis of data series and listing of such file series. * Update Scripts to Handle New File Names * Fix CI Test pml_x_psatd * Fix CI Test divb_cleaning_3d * Fix CI Tests with EB Support * Fix CI Tests with RZ Support * Fix CI Tests with PICMI Support * Use glob in Analysis of Collision Tests * Use rstrip in Analysis of Collision Tests * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix CI Tests for Langmuir_multi_1d/psatd * Fix CI Tests for LaserInjection_1d * Checkpoint-Restart Tests: 5 Digits `regtest.py` in `regression_testing` hard-codes 5 digits: ```diff --- a/regtest.py +++ b/regtest.py @@ -734,7 +734,7 @@ def test_suite(argv): shutil.move(test.diffDir, orig_diff_dir) # get the file number to restart from - restart_file = "%s_chk%5.5d" % (test.name, test.restartFileNum) + restart_file = "%s_chk%6.6d" % (test.name, test.restartFileNum) ``` * PICMI Restart Tests: `warpx_file_min_digits = 5` Same as other CI restart tests: hard-coded value in regression suite makes this necessary. X-ref: https://github.com/AMReX-Codes/regression_testing/issues/119 Co-authored-by: Edoardo Zoni <ezoni@lbl.gov> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-03-03Fix bug in setting weight with refine_plasma option. (#2907)Gravatar Andrew Myers 2-46/+44
* Fix bug in setting weight with refine_plasma option. * update benchmark for RefinedInjection test. * run with the right number of OMP and MPI * also use refine_plasma=1
2022-03-03Add More Doxygen Strings (#2921)Gravatar Edoardo Zoni 1-7/+40
* Add More Doxygen Strings * Add two additions Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
2022-03-03Python_restart_eb: Add CMake Options (#2919)Gravatar Axel Huebl 1-0/+2
Add missing CMake options in `WarpX-tests.ini` for the `Python_restart_eb` test. This must have been merged in parallel to when we modernized our regression tests end of last year.
2022-03-03PICMI: warpx_file_min_digits (#2914)Gravatar Axel Huebl 2-1/+13
Add for all diagnostics the equivalent of `<diag>.file_min_digits`.
2022-03-02CI: Cache for GitHub Actions (#2920)Gravatar Axel Huebl 12-10/+133
* CI: Cache for GitHub Actions Use caches for `ccache` on GitHub actions. * CI: Clean Up Windows