import { loadFixture as baseLoadFixture } from '../../../astro/test/test-utils.js'; /** * @typedef {import('../../../astro/test/test-utils').Fixture} Fixture */ export function loadFixture(inlineConfig) { if (!inlineConfig?.root) throw new Error("Must provide { root: './fixtures/...' }"); // resolve the relative root (i.e. "./fixtures/tailwindcss") to a full filepath // without this, the main `loadFixture` helper will resolve relative to `packages/astro/test` return baseLoadFixture({ ...inlineConfig, root: new URL(inlineConfig.root, import.meta.url).toString(), }); } Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/Source/Python/WarpX_py.cpp (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2021-10-25AMReX/PICSAR: Weekly Update (#2478)Gravatar Axel Huebl 4-4/+4
Weekly update to latest AMReX. Weekly update to latest PICSAR (no changes). ``` ./Tools/Release/updatePICSAR.py ./Tools/Release/updateAMReX.py ```
2021-10-25Make tests `pml_x_psatd` and `pml_x_yee` also restart tests. (#2444)Gravatar Yinjian Zhao 5-6/+75
* Test will crash for some reasons. * Modify more. * Debuging. * Fix a bug. * Change interval back to 50. * Apply suggestions from code review * Add more careful restart tests. Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
2021-10-25Increase EB coarsening level for linear solvers (#2457)Gravatar Weiqun Zhang 1-2/+9
* Increase EB coarsening level for linear solvers * Apply suggestions from code review Add comments.
2021-10-25Fix Bug with Python Wrappers for F,G (#2474)Gravatar Edoardo Zoni 2-8/+8
2021-10-23Add automated test of refined injection feature. (#2473)Gravatar Andrew Myers 3-0/+116
* Add automated test of refined injection feature. * revert accidental changes * missing import * fix typo in analysis script * add checksum stuff to analysis script * add benchmark file
2021-10-23PICMI: Add div(E),div(B) Cleaning Options (#2477)Gravatar Edoardo Zoni 3-2/+4
* PICMI: Add div(E),div(B) Cleaning Options * Update PICMI Version: 0.0.15
2021-10-22Fix average wall time per step (#2475)Gravatar Weiqun Zhang 1-1/+2
It should be computed using the number of steps in this run, otherwise the number is incorrect for restart runs.
2021-10-22Fix damped BC when running with a single box (#2407)Gravatar David Grote 2-63/+79
* Fix damped BC when running with a single box * Cleanup of comments and code
2021-10-22Docs: Tagfile (Doxygen) (#2463)Gravatar Axel Huebl 3-5/+13
* Docs: Tagfile (Doxygen) Generate a tagfile. Used as anchor in external projects. * Doxygen Interlink: External AMReX Tagfile Link AMReX objects to the AMReX doxygen page via its latest Doxygen tagfile.
2021-10-22Fix fields indexing (#2469)Gravatar David Grote 1-30/+31
* Fix fields indexing * Added additional documentation * Fixed comment
2021-10-22Added documentation for the Python interface (#2465)Gravatar David Grote 2-0/+73
* Added documentation for the Python interface * Clean up EOL space
2021-10-21CI: Test Windows + openPMD (#2440)Gravatar Axel Huebl 1-6/+8
* CI: Windows + openPMD * Windows: Work-Around <variant> mismatch Build openPMD-api in C++17 as well, so we consistently use `<variant>` over `<mpark/variant.hpp>`. * Test Fix for 0.14.3 (openPMD-api 1128) Test PR in https://github.com/openPMD/openPMD-api/pull/1128 * Finalize CI for now
2021-10-21Add Python Wrappers for F,G (#2460)Gravatar Edoardo Zoni 4-0/+254
2021-10-21Raw Diagnostics: Plot rho,F Automatically (#2456)Gravatar Edoardo Zoni 16-77/+31
2021-10-21Div(B) Cleaning: Change Normalization of G (#2429)Gravatar Edoardo Zoni 6-26/+28
* PSATD with div(B) Cleaning: Change Normalization of G * Use New Normalization also in RZ * Use New Normalization also in FDTD * Reset Benchmark of Test divb_cleaning_3d
2021-10-21Add 2D Langmuir Test with MR (#1716)Gravatar Edoardo Zoni 2-0/+63
* Add first Langmuir test with MR and clean up 2D analysis script * Cleaning, Remove Unused Import * Revert Changes to Python Analysis Script * Reset Benchmark of Langmuir_multi_2d_MR
2021-10-20⚠️ Add warning logger (#2113)Gravatar Luca Fedeli 32-90/+2218
* improve error msg * eliminate final dot * initial layout of the main classes * progress * progress with warnings * print local errors * progress with warning logger * improved MsgLogger * added file to test warnings * added method to read debug warnings from inputfile * progress towards collective gather of warnings * add missing blank line in warning message * move misplaced file * refactoring * fixed bugs * progress * fixed bugs * fixed some bugs * it finally works! * add comments in WarpX.H * add missing comment * added comments to WarpX.cpp * add profiler to WarpX.cpp * expose option to enable 'warn immediately' feature in cmake * Add comment to main.cpp * add missing comment in WarpX.cpp * add copyright and include guards to WarnManager_fwd.H * cleaning and added comments to WarnManager.H * updated test * added fwd file for MsgLogger * cleaning * Added copyright in WarnManager.cpp * Cleaning * cleaning * Add missing copyright * cleaning * clean and add comments to MsgLoggerSerialization.H * cleaning MsgLogger_fwd.H * cleaning * continue cleaning MsgLogger * added comments & bugfixing * removed test file * fixed bugs * Update Source/Utils/MsgLogger/MsgLogger.H Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> * Update Source/WarpX.H Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> * Update Source/Utils/MsgLogger/MsgLogger.H Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> * Update Source/Utils/MsgLogger/MsgLogger.H Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> * Update Source/Utils/MsgLogger/MsgLogger.cpp Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> * Update Source/Utils/MsgLogger/MsgLoggerSerialization.H Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> * Update Source/Utils/MsgLogger/MsgLoggerSerialization.H Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> * Update Source/Utils/MsgLogger/MsgLoggerSerialization.H Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> * Update Source/Utils/MsgLogger/MsgLoggerSerialization.H Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> * Update Source/Utils/MsgLogger/MsgLoggerSerialization.H Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> * Update Source/Utils/WarnManager.cpp Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> * Update Source/Utils/WarnManager.H Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> * Update Source/Utils/WarnManager.H Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> * Update Source/Utils/WarnManager.cpp Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> * fixed bugs * Update Source/Utils/MsgLogger/MsgLogger.cpp Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> * Added comment to explain rotation * use last value computed by partial_sum * fix bug * now use error stream * using anonymous namespace for helper functions * print on both stderr and stdout * now using runtime parameter to always print warnings * added documentation * using long int for counter * sort affected warnings list * add doc entry * removed doc * added documentation * fixed bug * fixed bug * removing unnecessary text * reformatting * reformatting * fixed bug * fixed bug * correction * add warning_logger.rst to toctree in developers.rst Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com>
2021-10-20Increase tolerance for single precision test & reset checksums (#2454)Gravatar Luca Fedeli 2-31/+31
* increase tolerance for single precision test * reset checksum Co-authored-by: Tools <warpx@lbl.gov>
2021-10-19Simplify momentum initialization in example input files (#2309)Gravatar Neïl Zaim 46-661/+609
* Simplify momentum initialization in example input files * Update benchmarks * Trigger Build * Apply suggestions from code review Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> * Add more amrex prefix * Remove using namespace amrex in PlasmaInjector.cpp * Fix compilation with OpenPMD Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com>
2021-10-19BinaryCollision: implement particle creation functor (#2315)Gravatar Neïl Zaim 6-103/+313
* BinaryCollision: implement particle creation functor * Apply suggestions from code review (restrict keyword) Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> * Don't restrict the particle pointers * Use atomicSetID * Use more restricts * Don't use auto restrict Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
2021-10-19Add reduced diag test in single precision (#2398)Gravatar Luca Fedeli 5-305/+392
* fix kinetic energy calculation in single precision * really fix the issue... * add missing _rt * we don't need m2 now * remove unused variable * initial work to add reduced diags test in single precision * updated tests * add back accidentally deleted comment * reduced tolerance in single precision * increase tolerance in single precision * always perform kinetic energy calculation in double precision * put w where it was * fixed bug * fixed bug * add json file for new test * use threshold for kinetic energy * fix bug * increase order of Taylor expansion * increase order of Taylor expansion * reduce classical/relativistic threshold for kinetic energy * reset threshold to 1.005 * improve test Co-authored-by: Tools <warpx@lbl.gov>
2021-10-19Added --detach to the updating scripts (#2447)Gravatar David Grote 3-3/+3
2021-10-19Simplify Esirkepov formula even more (#2374)Gravatar Remi Lehe 2-20/+26
* Simplify formulas for Esirkepov deposition * Simplify Esirkepov formulas even more * Update Source/Particles/Deposition/CurrentDeposition.H
2021-10-18Use os.path.join in picmi.py for portability (#2400)Gravatar Andrew Myers 1-4/+5
* Use os.path.join in picmi.py for portability * Apply suggestions from code review
2021-10-18GH Action CI Builds: Ninja (#2428)Gravatar Axel Huebl 11-26/+87
* GH Action CI Builds: Ninja Use Ninja for most builds to compile faster than using the GNU Makefile generator. * oneAPI: w/o Ninja Seems to be 10% slower for these compilers, so we keep the default. * NVHPC: w/o Ninja Seems to be 10% slower for `nvcc -ccbin=nvc++`, so we keep the default. * macOS: w/o Ninja Seems to be 20% slower, so we keep the default. * Clang pywarpx: w/o Ninja Seems to be 20% slower, so we keep the default.
2021-10-18Docs: Nsight-Systems (#2436)Gravatar Axel Huebl 1-2/+53
* Docs: Nsight-Systems How to use Nsight-Systems. Tested on Cori DGX. * Profiling: Link TinyProfiler Script Co-authored-by: Michael Kieburtz <michaelkieburtz@gmail.com> Co-authored-by: Michael Kieburtz <michaelkieburtz@gmail.com>
2021-10-18Fix typo: code-blockGravatar Axel Huebl 2-2/+2
2021-10-18OLCF/NERSC: Post-Processing (Jupyter) (#2443)Gravatar Axel Huebl 4-0/+80
Doc pages to get started with post-processing using Python and Jupyter at OLCF and NERSC.
2021-10-18Option to do single precision mesh communication. (#2294)Gravatar Andrew Myers 23-138/+581
* option to use single precision guard cell exhanges * add missing files * fix namespace issue * change precision of comms to float * ParmParse the single_precision_comms flag * set back to real * test * make sure dst is filled * nGrow -> nGrowVect * restore float * don't override valid cells * single precision mesh * whitespace * wrap SumBoundary * Wrap additional uses of FillBoundary. * catch missing copies of ParallelCopy * missing OverrideSyncs * add wrapper for iMultifab * fix typo * moar typos * typo * strip single_precision_mesh option * fix original copy * update fusible syntax Co-authored-by: Weiqun Zhang <WeiqunZhang@lbl.gov> * Fix: Single Precision Builds Should not copy around data for `do_single_precision_comms` * Docs: warpx.do_single_precision_comms * initialize this tmp multifab to 0.0 * fix tiny profile label * remove orig copies, they are only correct for FillBoundary * loosen tolerance for space charge tests for single precision * missing some setVal * another missing setVal * missing setVal * add wrapper for new version of sumboundary * add explicit cast to silence compiler warning * add a test for single precision comms * revert change to test precision * add benchmark for single precision comms test * restore tolerance I removed by mistake * tolerance * copyright headers * drop tolerance for single precision tests in default analysis script * missing python module * bump tol again * fix bad merge * Apply suggestions from code review Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> Co-authored-by: Remi Lehe <remi.lehe@normalesup.org> Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> Co-authored-by: Weiqun Zhang <WeiqunZhang@lbl.gov>
2021-10-18AMReX/PICSAR: Weekly Update (#2442)Gravatar Axel Huebl 4-4/+4
Weekly update to latest AMReX. Weekly update to latest PICSAR (no changes). ``` ./Tools/Release/updatePICSAR.py ./Tools/Release/updateAMReX.py ```
2021-10-18Improve `BeamRelevant` reduced diagnostics using `AMReX_Tuple`. (#2435)Gravatar Yinjian Zhao 1-247/+143
* Modified BeamRelevant.cpp. * Fix. * BeamRelevant: 10x less MPI Collectives Combine MPI collectives to avoid subsequent expensive global calls. * Fix Variable Shadowing * Prefer AllReduce API Same functionality, but more explicit name * Fix: Unusued Variable p_pos1 Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
2021-10-18Spack: No More `load -r` (#2439)Gravatar Axel Huebl 2-2/+2
The `-r` argument was removed from `spack load` and is now implied.
2021-10-18move kinetic energy calculation into Particles/Algorithms (#2441)Gravatar Luca Fedeli 6-24/+88
2021-10-18Multi-J Algo: Synchronize Nodal Points of F,G (#2434)Gravatar Edoardo Zoni 4-23/+49
2021-10-16Add Test: openPMD PICMI (#2438)Gravatar Axel Huebl 3-1/+37
* Gaussian Beam PICMI: Add openPMD Argument Add an `--diagformat` option to switch between plotfiles and openPMD for the Gaussian Beam PICMI example. * CI: openPMD + PICMI on Windows * Regression Test: Add openPMD PICMI * format -> warpx_format
2021-10-16Add automated test for repelling particles (#2427)Gravatar Remi Lehe 4-0/+183
* Add test with repelling particles * Add analysis script * Add as automated test * Add benchmark * Update Examples/Tests/RepellingParticles/inputs_2d * Apply suggestions from code review Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> * Update test * Update benchmark * Update Examples/Tests/RepellingParticles/analysis_repelling.py Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com>
2021-10-16Windows: FS Separator (#2424)Gravatar Axel Huebl 1-1/+42
* Windows: FS Separator Fix the openPMD warning: ``` Filepaths on WINDOWS platforms may not contain slashes '/'! Replacing with backslashes '\' unconditionally! ``` * openPMD: Replace just for Series We might also be able to silence the warning in openPMD-api later on.
2021-10-16Gaussian Laser : fix possible NaN in the calculation of theta_stc (#2433)Gravatar Luca Fedeli 1-3/+7
* fix issue with acos(arg) * fix bug * fix bug * fix bug * fix bug * fix GPU compilation issue
2021-10-15CI: Windows with Python (#2412)Gravatar Axel Huebl 3-5/+29
* Python: generalize library search (Win) * CMake: Honor Multi-Config Lib Alias For multi-config build generators (MSVC, Ninja opt-in), we have a deeper build structure based on the build type. Honor this structure for the (Python) library alias/symlink. * CI: Windows with Python Co-authored-by: Dave Grote <dpgrote@lbl.gov>
2021-10-15Made explicit several casts (#2431)Gravatar David Grote 2-7/+7
2021-10-15Synchronize GPU before stopping profile timer (#2415)Gravatar AlexanderSinn 4-13/+32
* synchronize device before ending profile * fix shadowing issue * add comment