aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver (follow)
AgeCommit message (Collapse)AuthorFilesLines
2020-04-02Includes: Only From `Source/` (#873)Gravatar Axel Huebl 3-4/+1
* 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-04-02Periodic, single-box FFT (#881)Gravatar Remi Lehe 4-11/+43
* Implement periodic-single box option for spectral * Fix out-of-bound in the periodic, single-box case * Add documentation for periodic_single_box_fft
2020-03-31Make Build System: No Public Includes (#870)Gravatar Axel Huebl 2-9/+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-30Remove compiler warnings (#843)Gravatar Edoardo Zoni 2-1/+4
* Fix compiler warnings with DIM=2 * Fix compiler warnings with USE_RZ=TRUE * Fix compiler warnings with USE_PSATD=TRUE and DIM=2 * Fix compiler warnings with USE_PSATD=TRUE and DIM=3 * Fix bug: discard only return value when calling DefineAndReturnParticleTile * Remove unused variables not triggering warnings
2020-03-13PSATD Single precision (#805)Gravatar MaxThevenet 6-77/+122
* fix compilation for single precision PSATD with USE_GPU * compiles and tested on CPU also * add sentence to doc: FFTW needs to be compiled with single precision option * add test, better pre-proc directives indent, clearer ifdef * use using whenever possible * indent * fix TravisCI matrix, and improve matrix test * need to compile with same precision for fields and particles
2020-03-06Remove FFTW include (#777)Gravatar Remi Lehe 1-4/+0
2020-02-27Implement div(E) diagnostics for spectral case (#720)Gravatar Edoardo Zoni 5-11/+100
* Implement div(E) diagnostics for spectral case. * split travis tests in bigger matrix * split more TravisCI tests, add electrostatic, use defaults values * typo * Move computation of div(E) to base class SpectralBaseAlgorithm. * need to split psatd too * consistent variable names and use function to avoid duplication * fix typo for qed tests * typo * also need to update run_tests.sg * Update copyright tags. * change matrix * Add test of div(E) vs rho/epsilon_0 in PML test. * SpectralFieldIndex: reuse memory slot for Bx when computing divE. Co-authored-by: MaxThevenet <mthevenet@lbl.gov>
2020-02-25Includes: Clean Up (#743)Gravatar Axel Huebl 14-30/+76
- 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-24Profiler wrapper to allow for cudaDeviceSynchronize (#738)Gravatar MaxThevenet 2-17/+33
* add warpx profiler wrapper * call WX profiler wrapper instead of BL * EOL and cleaning * add doc on profile syncs * do not use PROFILE macros in .H files * replace WX_PROFILE with WARPX_PROFILE and use bool instead of int * typo * this file shouldn't be there
2020-02-19[mini-PR] when a cufft error occurs, print a meaningful error message (#728)Gravatar Luca Fedeli 2-6/+55
* added method to translate cufft errors * fixed style * bug fixing
2020-02-18Galilean PSATD with shift (#704)Gravatar Olga Shapoval 10-14/+305
* Read Galilean velocity * Prepare structures for Galilean solver * Started implementing Galilean equations * Analytical limits for X1, X2, X3, X4 coefficients added * Slight changes added * Added Galilean position pusher * Scale galilean velocity * Remove unneeded Abort * Fix Galilean pusher * Allocate Theta2 array * Fix definition of coefficients * Increase guard cells for Galilean * Add guard cell in particle exchange * Type corrected * v_gal added to warpx_current_deposition * v_gal added to WarpXParticleContainer.H * Bug fixed - update particle x-position over one time step * Fix issues with merge from dev * Preparation for merging dev into galilean. * Adding galilean shift * Implemented galilean shift * Changed method's name from GalileanShift to ShiftGalileanBoundary * Added doxygen string for ShiftGalileanBoundary * Removed never used method LowerCornerWithCentering * Removed temporary comments * Removed dt as a variable from DepositCharge method and its dependencies * Converted tab to spaces * Removed EOL white space * Add documentation and automated tests * Fix compilation error * Add automated test * Update automated test * Removed temporary used galilean shift * Removed temporary used particle's push for Galilean PSATD * Removed unused statement * Remove EOL white space. * Added zero shift for LowerCorner in RZ geometry * Minor changes to Galilean implementation * Modifications for GPU * Fix typo Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
2020-01-27Automatically add copyright header with update_copyright.shGravatar Tools 12-0/+77
2020-01-16No thrust (#629)Gravatar Andrew Myers 1-6/+1
* remove thrust from warpx * add in header for std::complex
2020-01-07Update Source/FieldSolver/SpectralSolver/SpectralSolver.HGravatar MaxThevenet 1-1/+1
Co-Authored-By: Axel Huebl <axel.huebl@plasma.ninja>
2019-12-18Make comments in header files Doxygen-readableGravatar MaxThevenet 4-11/+19
2019-12-15Doxygen: add amrex:: prefix for function arguments in cpp filesGravatar MaxThevenet 1-4/+4
2019-09-11Source: tabs2spacesGravatar Axel Huebl 1-3/+3
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 3-3/+3
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-03Merge branch 'dev' into RZgeometryGravatar Remi Lehe 1-1/+0
2019-08-31back to defining imaginary number in each routine...Gravatar MaxThevenet 1-1/+1
2019-08-31Define imaginary number I in MathConstGravatar MaxThevenet 1-1/+1
2019-08-31move WarpX_Complex.H to Source/UtilsGravatar MaxThevenet 2-28/+0
2019-08-16Moved WarpX_Complex.H to UtilsGravatar Dave Grote 5-30/+24
2019-07-30Corrections to allow compilation on GPUGravatar Remi Lehe 2-45/+60
2019-07-22Merge branch 'dev' into psatd_pmlGravatar Remi Lehe 5-63/+142
2019-06-24Only copy FFT data to the valid boxGravatar Remi Lehe 1-21/+22
2019-06-06 Included revisions as suggested in the PRGravatar Revathi Jambunathan 3-12/+9
2019-06-06 adding 2D cufft plansGravatar Revathi Jambunathan 1-8/+13
2019-06-06cleaning code for spectral cufft for 3DGravatar Revathi Jambunathan 4-93/+26
2019-05-14 changed made after merging with lastest dev versionGravatar Revathi Jambunathan 3-20/+21
2019-05-08merged with upstream devGravatar Revathi Jambunathan 7-31/+114
2019-05-08temporary print files for debuggingGravatar Revathi Jambunathan 1-34/+18
2019-05-06Added cuFFT kernels -- debugging error in rho values before forward transformGravatar Revathi Jambunathan 5-55/+203
2019-05-04Initialize spectral solverGravatar Remi Lehe 1-0/+1
2019-05-03Prepare spectralsolver for PMLGravatar Remi Lehe 2-5/+18
2019-05-03Commit missing filesGravatar Remi Lehe 2-0/+165
2019-05-02Start implementation of spectral PMLGravatar Remi Lehe 6-13/+26
2019-05-02Merge pull request #103 from ECP-WarpX/factoryGravatar Remi Lehe 8-62/+136
Use virtual function to select the spectral algorithm
2019-05-01Correct error in calculation of k vectorGravatar Remi Lehe 2-6/+9
2019-05-01Fix FFT sizeGravatar Remi Lehe 1-5/+8
2019-05-01Fix normalizationGravatar Remi Lehe 1-6/+8
2019-05-01Implement Real-to-complex FFTGravatar Remi Lehe 4-30/+56
2019-05-01Add virtual destructorGravatar Remi Lehe 1-0/+4
2019-05-01Add commentsGravatar Remi Lehe 2-2/+9
2019-04-30Fix typoGravatar Remi Lehe 1-1/+2
2019-04-30Update Make.packageGravatar Remi Lehe 1-0/+1
2019-04-30Add separate file for constructorGravatar Remi Lehe 2-17/+38
2019-04-30Use factory method for the solverGravatar Remi Lehe 5-27/+62
2019-04-30Reorganize directoriesGravatar Remi Lehe 4-2/+7
2019-04-29Merge branch 'dev' into fix_spectralGravatar Remi Lehe 3-79/+39