aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceSolver.cpp (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2020-02-28fixing bug in ckc (#760)Gravatar Revathi Jambunathan 1-10/+10
2020-02-28Avoid using namespace amrex in .H files (#754)Gravatar MaxThevenet 1-10/+14
* avoid using namespace amrex in .H files * need amrex prefix to function arguments * typo
2020-02-28Add acknowledgement doc section (#758)Gravatar MaxThevenet 2-0/+24
* add acknowledgement doc section * better phrasing and fix citation * typo
2020-02-27Update tolerance of regression tests on garuda (#756)Gravatar Remi Lehe 1-0/+3
2020-02-27Comment/Remove Unused Parameters (#749)Gravatar Axel Huebl 15-22/+34
Use the `clang-tidy` pass `misc-unused-parameters` to remove unused parameter warnings. https://clang.llvm.org/extra/clang-tidy/checks/misc-unused-parameters.html) 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 ```
2020-02-27fix number of steps for injection test on GPU (#755)Gravatar MaxThevenet 1-0/+1
2020-02-27Implement div(E) diagnostics for spectral case (#720)Gravatar Edoardo Zoni 8-24/+121
* 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-26Insist that small PRs are better. (#752)Gravatar MaxThevenet 1-3/+7
* clarify that we WANT PRs to be small * Update CONTRIBUTING.md Co-Authored-By: Axel Huebl <axel.huebl@plasma.ninja> Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
2020-02-26Fix Util: No Variable-Length Array (#750)Gravatar Axel Huebl 1-6/+1
Defining a variable-length array (VLA) is a C99 feature. It's conditional in C11 and actually not part of C++ either :)
2020-02-26Use C++ templates in `EvolveE` function (#676)Gravatar Remi Lehe 9-440/+386
* Prepare EvolveE * Cartesian equations without current * Implement Cartesian EvolveE * Progress towards cylindrical solver * Correct typo * Implement cylindrical solver (without on-axis condition) * Fix compilation errors * Add regularization for RZ solver * Added correction term for F * Remove file for nodal stencil * Apply stylistic changes to EvolveE * Fix compilation errors * Correction to avoid out of bound * Remove references to old file * Correct bug in EvolveB * Implement correction on axis for Et * Remove previous field update functions * Remove unused code
2020-02-26BackTransformedDiagnostic: ParticleReal (#747)Gravatar Axel Huebl 1-28/+28
Fix type conversions when compiling with `PRECISION=FLOAT`.
2020-02-26Single Precision: Binary Suffixes (#748)Gravatar Axel Huebl 1-0/+7
Add `.SP` for `PRECISION=FLOAT` and `.pSP` for `USE_SINGLE_PRECISION_PARTICLES=TRUE` as binary suffix.
2020-02-25Includes: Clean Up (#743)Gravatar Axel Huebl 96-405/+525
- 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-25FDTD: Real Literals and Formatting (#736)Gravatar Axel Huebl 4-149/+176
Clean up `amrex::Real` literals (aka "numbers"). This avoids calculating a line in double precision and casting it down to `Real` on assignment. Also fixes some formatting issues. (Commit credited to Remi.) Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
2020-02-25openPMD: Fix Single Precision Build (#745)Gravatar Axel Huebl 2-2/+2
Fix type for local field data pointer.
2020-02-24Profiler wrapper to allow for cudaDeviceSynchronize (#738)Gravatar MaxThevenet 35-117/+178
* 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-24Split travis tests in bigger matrix (#723)Gravatar MaxThevenet 6-26/+113
* split travis tests in bigger matrix * split more TravisCI tests, add electrostatic, use defaults values * typo * 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 * change matrix * try gathering 2D and 3D tests together * split test matrix to have 2 compilations for each group * EOL * avoid compiling electrostatic * typo * [ci skip] Update Regression/prepare_file_travis.py Co-Authored-By: Axel Huebl <axel.huebl@plasma.ninja> * this is an OR, not an AND * test that TravisCI matrix encompasses all tests * debugging * debugging * should fix the error * Apply suggestions from code review Co-Authored-By: Axel Huebl <axel.huebl@plasma.ninja> * use fewer && * safeguard * should work like that Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
2020-02-24corrected two typos missed during review of PR-719 (#741)Gravatar Glenn Richardson 1-2/+2
2020-02-24update due to change in amrex (#740)Gravatar Andrew Myers 1-2/+2
2020-02-21Call AMReX Bin sort (#739)Gravatar MaxThevenet 6-4/+25
* call AMReX Bin sort instead of Cell sort * proper initialization of bin size * IntVect declaration must work in 2D and 3D * Apply suggestions from code review Co-Authored-By: Axel Huebl <axel.huebl@plasma.ninja> * remove print statement Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
2020-02-21Make the option to exchange all guard cells safer (#709)Gravatar MaxThevenet 9-62/+106
* make the option to exchange all guard cells safer * EOL **** * more consistent naming in guard cells test script
2020-02-20Minor refactoring of space-charge calculation (#732)Gravatar Remi Lehe 5-10/+29
2020-02-20openPMD: warn if step is already written (#718)Gravatar guj 3-7/+19
* making sure iterations are written at most once. * prints a warning when iteration is written more than once writting is not stopped * Fixed tabs * included <iostream> as requested by Axel
2020-02-20Add Reset Random Seed Feature (#717)Gravatar Yinjian Zhao 2-0/+31
* Add ResetRandomSeed * Add doc * Modify and change location of the code. * Small fix * Try to fix an alert * Try to fix an alert * Modify based on suggestions * Use INT_MAX * Modify based on suggestions. * Modify based on suggestions.
2020-02-20Do not use local Redistribute for electrostatic solver (#731)Gravatar Remi Lehe 1-0/+7
2020-02-19doc install yt on Summit (#729)Gravatar MaxThevenet 2-3/+18
* doc install yt on Summit * eol
2020-02-19avoid duplicate tests and plot less often (#726)Gravatar MaxThevenet 13-149/+11
* avoid duplicate tests and plot less often * fix tests I broke when trying to save plotfiles
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 28-60/+572
* 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-02-18README: Update Badged to `master` (#725)Gravatar Axel Huebl 3-4/+3
* README: Update Badged to `master` Update the badges to check the `master` branch as development branch. * Docs: More dev->master updates - release workflow - contribution guide link
2020-02-15Xi precision (#719)Gravatar MaxThevenet 5-105/+110
* replace xi by xi*c*c, which can be represented by single precision * replace xi with xi*c*c in QED kernel * typo * Update Source/FieldSolver/WarpX_QED_K.H Co-Authored-By: Axel Huebl <axel.huebl@plasma.ninja> * add bunch of _rt * typo, didn't compile in 2d * Apply suggestions from code review Control parameter name update. Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
2020-02-15Analysis: Fix Warnings (#722)Gravatar Axel Huebl 5-9/+2
Fix a couple of unused imports and unreachable statements.
2020-02-13moving dcomp++ outside MFIter loop (#711)Gravatar Revathi Jambunathan 1-9/+4
* moving dcomp++ outside MFIter loop * cleaning * fixing setVal syntax
2020-02-12update release tag in the code (#706)Gravatar MaxThevenet 3-3/+3
2020-02-12Docs: Fix Link Format (#710)Gravatar Axel Huebl 1-1/+1
Fix an ill-formatted .rst link
2020-02-11Add do_not_gather. (#705)Gravatar Yinjian Zhao 3-1/+8
2020-02-11openPMD: Add GNUmakefile Default (#708)Gravatar Axel Huebl 1-0/+1
Add a new entry in `GNUmakefile` for openPMD support. Default stays as before to false. This file is currently been modified in spack packages to adjust defaults of build variants.
2020-02-11Remove all mentions of the dev branch (#707)Gravatar Remi Lehe 8-32/+23
2020-02-11openPMD-api: One Series at a Time (#701)Gravatar Axel Huebl 1-0/+4
Make sure that only one Series is open at a time in case `Init` is called again. In previous logic, at the moment of assignment of a new Series, the old and the new `openPMD::Series`` were briefly active for a short time. ADIOS1 does not support this and its anyway not what we want to do here. Discovered by Junmin. Co-authored-by: guj <guj@users.noreply.github.com>
2020-02-11Add automated test for the electrostatic code (#700)Gravatar Remi Lehe 2-0/+43
* Create inputs * Add electrostatic automated test * Rename inputs to inputs_3d * use inputs_3d as name for input file Co-authored-by: dbizzozero <58712693+dbizzozero@users.noreply.github.com> Co-authored-by: MaxThevenet <mthevenet@lbl.gov>
2020-02-11openPMD: Avoid Writing Last Step TwiceGravatar Junmin Gu 1-1/+4
Fix logic issue in electro-magnetic step, which causes the last step to be written twice to openPMD-api. Found by Junmin.
2020-02-11Remove compilation of Fortran files in EM modeGravatar Remi Lehe 2-3/+7
2020-02-11AMReX will remove AMREX_DEVICE_COMPILE soon because of DPC++. So we now ↵Gravatar Weiqun Zhang 3-12/+12
need to use __CUDA_ARCH__ and __HIP_DEVICE_COMPILE__
2020-02-10Langmuir Analysis: absolute dfloat to 0Gravatar Axel Huebl 2-4/+7
2020-02-10Python Compile in Single PrecisionGravatar Axel Huebl 4-14/+28
2020-02-10CI: Single Precision TestsGravatar Axel Huebl 1-0/+36
Add a Langmuir 2D & 3D case with single precision.
2020-02-10wp_parser::nvars is not neededGravatar Weiqun Zhang 3-7/+0
2020-02-10Change back.Gravatar Yinjian Zhao 2-7/+4
2020-02-10template Parser so that it works for any number of variablesGravatar Weiqun Zhang 24-288/+196
2020-02-10mention yt installation script in docGravatar MaxThevenet 1-0/+1