aboutsummaryrefslogtreecommitdiff
path: root/Source/Python (follow)
AgeCommit message (Collapse)AuthorFilesLines
2020-06-22Added check of gridding for RZ spectral solver (#1005)Gravatar David Grote 2-0/+7
* Added CheckGriddingForRZSpectral * Bug fix in check gridding for RZ Spectral, fixing handling of refinement ratio * Change numprocs=2 for python reg tests and reset benchmarks (#1075) * changing nprocs to 2 for Python_PlasmaAcceleration test * Resetting benchmark for Python_PlasmaAcceleration test case due to change in nprocs=2 in reg test * resetting benchmarks for Python test-cases except Python_Langmuir due to change in numprocs in WarpX-tests.ini * changing numprocs=2 for Python tests * resetting python reg test benchmarks after updating pywarpx Co-authored-by: Revathi Jambunathan <revanathan@pop-os.localdomain> Co-authored-by: Tools <warpx.lbl.gov> Co-authored-by: Tools <warpx@lbl.gov> * Updates to picmi, mostly related to fields, and add psatd (#1077) * Fixed bad arguments in PICMI_inputs_laser_acceleration.py (#1074) Note that polarization_angle was changed to 0 since that was the value being used because the polarization_argument was bad. * Fix typo for pml_ncell in parameters doc (#1071) * remove #line wp_parser.l because it causes issues with AMReX make system (#1078) * remove amrex namespace from diag functor cpp files and use amrex:: prefic (#1093) * For RZ spectral, updated documentation regarding blocking factor and max grid size Co-authored-by: Revathi Jambunathan <41089244+RevathiJambunathan@users.noreply.github.com> Co-authored-by: Revathi Jambunathan <revanathan@pop-os.localdomain> Co-authored-by: Tools <warpx@lbl.gov> Co-authored-by: NeilZaim <49716072+NeilZaim@users.noreply.github.com> Co-authored-by: WeiqunZhang <WeiqunZhang@lbl.gov> Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
2020-06-12Add CMake Scripts (#759)Gravatar Axel Huebl 1-0/+5
* [skip travis] CMake: Add CMake Scripts This add CMake scripts for the CMake build system generator. * CUDA Support Achieved Fastest compile via: cmake .. -DENABLE_CUDA=ON -DCUDA_ARCH=6.0 * CMake: openPMD & QED * CMake: Dimension Support WarpX_DIMS=2,3,RZ * CCache & Out-of-Source Enable CCache when found and prevent in-root builds (in-source okay-ish). * CMake: CUDA C++ Language Minimum * Add new Files * CI: Migrate macOS to CMake * Fortran: Enable Because Transitive ... for now :) * CI: Migrate Linux ICC to CMake * CI: Verbose Make * CMake: Add Missing PSATD Sources * CMake: PSATD, Compute, Precision, Clean
2020-05-01Do not rely on nodal flags (#931)Gravatar Edoardo Zoni 1-16/+17
* Start removing nodal flags where possible * Remove additional nodal flags * Clean up getFieldNodalFlagData in Python wrappers * Remove nodal flags from PML files * Revert "Remove nodal flags from PML files" This reverts commit 1d58519f9cee2e64df811f76f3d8a0aead1aa4ef. * Fix issue when removing nodal flags from PML files * Remove nodal flags from (OLD) slice diagnostics * Nodal flags are now local variables in WarpX::AllocLevelMFs * Trigger Travis CI build after AMReX bug fix * Void commit: trigger Travis CI build
2020-05-01Delete old diagnostics (#933)Gravatar MaxThevenet 2-35/+0
* Create subsection for diags documentation in input parameters list * Replace old diags with new ones IN DOC ONLY * eol whitespace * Check first CI test with new diags, before changing all of them * use diags in all CI * oops, had forgotten all examples except Tests/ * Updated picmi interface to use the new diagnostics * fix bug in how field functors are initialized for diags * fix bug: should always dump output at the end of simulation * eol * update test parameters in ini file * Further fixes to picmi for new diagnostics * Updates PICMI input files to use the new diagnostics * avoid dumping final plotfile twoce * update test to run with new diags * fix typo introduced when fixing merge conflicts * had accidentally removed the max_step here, so the run never ended on TravisCI * Add Diagnostics.py for picmi with new diagnostics * Adding m_ for member variables in new diags (#934) * fixing bug to initialize CellCenterFunctor for Bx * diag_name renamed to m_diag_name * some more diag members made m_ * renaming member variable mf_avg to m_mf_output * fixing m_mf_output to mf_dst in comments * Python documentation updates (#936) * Update Python documentation * Added numpy as a requirement for the Python installation * Cleaned EOL white space in Python documentation * Add periodictable to the Python packages required Co-Authored-By: Axel Huebl <axel.huebl@plasma.ninja> * Added periodictable to required packages for pure Python version Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> * Add hostname to LoadBalanceCosts reduced diagnostic (#902) * Add hostname to reduced diags EOL Fix rd loadbalancecosts test AMREX_USE_MPI EOL move macro to source file Review changes eol add GPU ID if running on GPU eol Typo in comment use vectors to get rid of C-style memory management Fix for test eol * Compute number of unique box data fields in analysis script * analysis script * Use amrex Tokenize to split string * Update WarpXUtil.cpp * Update WarpXUtil.H * [mini] Add contact us section to documentation (#941) * add contact us section to doc * Update Docs/source/contact_us.rst Co-Authored-By: L. Diana Amorim <LDianaAmorim@lbl.gov> * Update Docs/source/contact_us.rst Co-authored-by: L. Diana Amorim <LDianaAmorim@lbl.gov> * stop calling the old WritePlotFile functions * fix new diags, problem with rho and PSATD and particle output variables * remove more deprecated code for old diags * Move checkpoint capability to new diagnostics * error if user asks custom output for checkpoint * eol * some more old diags code deleted * further cleaning * eol * further cleaning, make sure that WarpX compiles with USE_OPENPMD * remove old diags parameters * use new option to change the plotfile name * typo * do not need checkpoint files * adapt to new option for checkpoint * removed unread options as they make tests crash * remove warpx_checkInt from the Python layer * remove some more python wrappers * add checkpoint capability with 2 diags in new output * fix bug in MultiDiagnostics, and (should) fix checkpoint-restart test * fix restart CI test * avoid issue when writing the last plotfile twice * dpgrote's fix for the Python tests * update doc for diagnostics * stop requesting ndiags, this is read from the list of diags * awk to remove ndiags from all example input files * Removed diagnostics.ndiags from picmi interface Co-authored-by: Dave Grote <dpgrote@lbl.gov> Co-authored-by: Dave Grote <grote1@llnl.gov> Co-authored-by: Revathi Jambunathan <41089244+RevathiJambunathan@users.noreply.github.com> Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> Co-authored-by: Michael E Rowan <38045958+mrowan137@users.noreply.github.com> Co-authored-by: L. Diana Amorim <LDianaAmorim@lbl.gov>
2020-04-02Includes: Only From `Source/` (#873)Gravatar Axel Huebl 1-1/+0
* Includes: Only From `Source/` Avoid adding all directories to include paths: - automatically structure includes more clearly, e.g. a util include with a short name is clearly seen as such - should have some small positive impact on compile time, since the compiler has to search less directories for an include file * Includes: Fix Non-Local Paths Add missing prefix relative to `Source/` for WarpX-local includes.
2020-03-31Make Build System: No Public Includes (#870)Gravatar Axel Huebl 1-2/+0
Remove the listing of all header-files from the Make-buildsystem. Listing public header files here tells the AMReX Makefile build system to install those in an install step after build. WarpX is currently not building a public library which can be consumed by users for their projects and only an executable.
2020-03-23Updated Python interface for Python_Langmuir_rz_multimode test (#810)Gravatar David Grote 1-0/+29
* Added nodal and cell size data to the Python interface and updates the Python_Langmuir_rz_multimode regression test * Cleanup of PICMI_inputs_langmuir_rz_multimode_analyze.py
2020-03-16Added Python wrapper of charge density arrays (#783)Gravatar David Grote 1-0/+20
2020-02-25Includes: Clean Up (#743)Gravatar Axel Huebl 3-7/+10
- Use `""` for WarpX-local includes - Order: WarpX `""`, AMReX `<>`, other third party includes `<>` - Add dir prefixes for WarpX Add order to includes by including from `Source/` onward and keeping directory prefixes of non-local includes for clarity.
2020-02-10Python Compile in Single PrecisionGravatar Axel Huebl 3-13/+21
2020-01-28Merge pull request #661 from MaxThevenet/copyrightGravatar Remi Lehe 4-0/+29
Add Copyright header in all source files
2020-01-28Simplify Plot OptionsGravatar Axel Huebl 2-0/+11
Remove the `dump_plotfile` switch and only control via interval value in `plot_int` for plotfiles. Remove the `dump_openpmd` switch and only control via interval value in `plot_openpmd` for openPMD data dumps. openPMD: pick first available backend if unspecified.
2020-01-27Automatically add copyright header with update_copyright.shGravatar Tools 4-0/+29
2019-12-23Merge branch 'dev' into commGravatar MaxThevenet 2-125/+74
2019-12-20Merge pull request #568 from dpgrote/pml_pythonGravatar Remi Lehe 2-125/+74
Adds Python wrapper of PML fields
2019-12-18Merge branch 'dev' into commGravatar MaxThevenet 1-2/+3
2019-12-12Added Python wrapper for the PML fieldsGravatar Dave Grote 1-0/+37
2019-12-12Cleaned up the Python interface accessing the fieldsGravatar Dave Grote 2-116/+28
2019-12-11fixed possible overflow and added some static casts to replace C-style castsGravatar Luca Fedeli 1-2/+3
2019-10-27FillBoundaryE/B/F take mandatory argument nguardGravatar MaxThevenet 1-2/+2
2019-10-01Allowed single precision in the Python interfaceGravatar Dave Grote 2-55/+68
2019-09-11Source: tabs2spacesGravatar Axel Huebl 1-15/+15
Manually fix tabs to four spaces and alignments for consistent prepresentation of source code over all machines.
2019-09-11Source & Tools: No EOL WhitespacesGravatar Tools 2-27/+27
End-of-line (EOL) whitespaces are verbose and increase diffs and merge conflicts over time. Cleaned them up for the `Source/`, `Examples/` and `Tools/` directory with the following bash one-liner: ```bash find . -type f -not -path './.git*' \ -exec sed -i 's/[[:blank:]]*$//' {} \; ``` Committed as generic user so git does not credit the many lines to me: ```bash GIT_AUTHOR_NAME="Tools" GIT_AUTHOR_EMAIL="warpx@lbl.gov" \ git commit ```
2019-09-06Updated Python particles interface to allow refined levelsGravatar Dave Grote 2-14/+10
2019-08-26Clean up of RZ mutlimode, mostly removing imaginary part of mode 0Gravatar Dave Grote 1-1/+1
2019-06-14Updated Python interface, adding WarpInterfaceGravatar Dave Grote 1-2/+2
2019-06-14Another fix for the Python wrapper for RZGravatar Dave Grote 1-3/+3
2019-06-14Update Python wrapper to handle RZ versionGravatar Dave Grote 1-21/+25
2019-05-20Let amrex decide whether it should finalize MPIGravatar Weiqun Zhang 1-1/+1
2019-05-14Fixes for the Python RZ versionGravatar Dave Grote 1-4/+4
2019-04-10Convert box size to boosted frame, when using Python `step` functionGravatar Remi Lehe 2-1/+9
2019-03-01move warpxwrappers. rename ParticleContainer files to MultiParticleContainer ↵Gravatar MaxThevenet 3-1/+568
files
2019-02-19update make file(s) so that code compilesGravatar MaxThevenet 1-0/+10
2019-02-12re-order tree structure of source codeGravatar MaxThevenet 2-0/+42