From f73b3cd49c430c59b6750d5e65dfd19dcf44c752 Mon Sep 17 00:00:00 2001 From: Yinjian Zhao Date: Wed, 22 Dec 2021 12:55:25 -0700 Subject: 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 Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- Source/EmbeddedBoundary/WarpXFaceExtensions.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Source/EmbeddedBoundary/WarpXFaceExtensions.cpp') 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 WarpX::CountExtFaces() { amrex::Array1D 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 @@ -166,6 +167,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()); @@ -483,6 +486,7 @@ WarpX::ComputeOneWayExtensions() { } } +#endif #endif } @@ -490,6 +494,7 @@ WarpX::ComputeOneWayExtensions() { 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 } -- cgit v1.2.3