Skip to content

Commit

Permalink
Move several EB-related methods out of the WarpX class (#5630)
Browse files Browse the repository at this point in the history
This PR transforms the WarpX member functions `MarkReducedShapeCells`,
`MarkUpdateCellsStairCase`, `MarkUpdateECellsECT`,
`MarkUpdateBCellsECT`, `MarkExtensionCells` into pure functions inside
the namespace `warpx::embedded_boundary`, together with
`ComputeEdgeLengths`, `ComputeFaceAreas`, `ScaleEdges`, and
`ScaleAreas`. The source files containing these functions are renamed as
`EmbeddedBoundaryInit.H/cpp` , since these functions are called only
during the initialization.
  • Loading branch information
lucafedeli88 authored Feb 14, 2025
1 parent 2cc4fd2 commit 7c9f8f2
Show file tree
Hide file tree
Showing 10 changed files with 782 additions and 768 deletions.
2 changes: 1 addition & 1 deletion Source/BoundaryConditions/PML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "BoundaryConditions/PMLComponent.H"
#include "Fields.H"
#ifdef AMREX_USE_EB
# include "EmbeddedBoundary/EmbeddedBoundary.H"
# include "EmbeddedBoundary/EmbeddedBoundaryInit.H"
#endif
#ifdef WARPX_USE_FFT
# include "FieldSolver/SpectralSolver/SpectralFieldData.H"
Expand Down
2 changes: 1 addition & 1 deletion Source/EmbeddedBoundary/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ foreach(D IN LISTS WarpX_DIMS)
warpx_set_suffix_dims(SD ${D})
target_sources(lib_${SD}
PRIVATE
EmbeddedBoundary.cpp
EmbeddedBoundaryInit.cpp
Enabled.cpp
WarpXInitEB.cpp
WarpXFaceExtensions.cpp
Expand Down
55 changes: 0 additions & 55 deletions Source/EmbeddedBoundary/EmbeddedBoundary.H

This file was deleted.

200 changes: 0 additions & 200 deletions Source/EmbeddedBoundary/EmbeddedBoundary.cpp

This file was deleted.

Loading

0 comments on commit 7c9f8f2

Please sign in to comment.