diff options
author | 2021-12-22 12:55:25 -0700 | |
---|---|---|
committer | 2021-12-22 19:55:25 +0000 | |
commit | f73b3cd49c430c59b6750d5e65dfd19dcf44c752 (patch) | |
tree | 2853a02755d260b690ba7373ab4ee0ff63a89de9 /Source/EmbeddedBoundary/WarpXFaceExtensions.cpp | |
parent | 011241af1c8feac1e1f8c726ac729a1216bd5d83 (diff) | |
download | WarpX-f73b3cd49c430c59b6750d5e65dfd19dcf44c752.tar.gz WarpX-f73b3cd49c430c59b6750d5e65dfd19dcf44c752.tar.zst WarpX-f73b3cd49c430c59b6750d5e65dfd19dcf44c752.zip |
Add embedded BC in RZ. (#2602)
* Start to add embedded BC in RZ.
* Add .
* Remove scaling
* Fix compilation error
* Update
* Can compile.
* Add call linop.setRZ(true).
* Remove lines 264 to 312 and 343 to 345.
* Add assert.
* Remove an assert.
* Add an automated test.
* Change to MLEBNodeFDLaplacian.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix compilation error
* Update the test selection
* Correct compilation error
* Move test to another worker
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add new required argument
* Update Examples/Tests/ElectrostaticSphereEB/inputs_rz
* Update Examples/Tests/ElectrostaticSphereEB/analysis_rz.py
* Update analysis script
Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to 'Source/EmbeddedBoundary/WarpXFaceExtensions.cpp')
-rw-r--r-- | Source/EmbeddedBoundary/WarpXFaceExtensions.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/EmbeddedBoundary/WarpXFaceExtensions.cpp b/Source/EmbeddedBoundary/WarpXFaceExtensions.cpp index b52a392af..cde8d1dc2 100644 --- a/Source/EmbeddedBoundary/WarpXFaceExtensions.cpp +++ b/Source/EmbeddedBoundary/WarpXFaceExtensions.cpp @@ -141,6 +141,7 @@ amrex::Array1D<int, 0, 2> WarpX::CountExtFaces() { amrex::Array1D<int, 0, 2> sums{0, 0, 0}; #ifdef AMREX_USE_EB +#ifndef WARPX_DIM_RZ #ifdef WARPX_DIM_XZ // In 2D we change the extrema of the for loop so that we only have the case idim=1 @@ -167,6 +168,7 @@ WarpX::CountExtFaces() { amrex::ParallelDescriptor::ReduceIntSum(&(sums(0)), AMREX_SPACEDIM); #endif +#endif return sums; } @@ -369,6 +371,7 @@ ComputeNBorrowEightFacesExtension(const amrex::Dim3 cell, const amrex::Real S_ex void WarpX::ComputeOneWayExtensions() { #ifdef AMREX_USE_EB +#ifndef WARPX_DIM_RZ auto const eb_fact = fieldEBFactory(maxLevel()); auto const &cell_size = CellSize(maxLevel()); @@ -484,12 +487,14 @@ WarpX::ComputeOneWayExtensions() { } #endif +#endif } void WarpX::ComputeEightWaysExtensions() { #ifdef AMREX_USE_EB +#ifndef WARPX_DIM_RZ auto const &cell_size = CellSize(maxLevel()); const amrex::Real dx = cell_size[0]; @@ -640,6 +645,7 @@ WarpX::ComputeEightWaysExtensions() { } } #endif +#endif } |