Skip to content

Commit

Permalink
Add: MultiFabRegister (ECP-WarpX#5230)
Browse files Browse the repository at this point in the history
Add a central location to store all `MultiFab`s in.
The `ablastr::fields::MultiFabRegister` provides us with a
central location to allocate, initialize and exchange
fields now.

Co-authored-by: Remi Lehe <[email protected]>
Co-authored-by: Marco Acciarri <[email protected]>
Co-authored-by: Justin Angus <[email protected]>
Co-authored-by: Edoardo Zoni <[email protected]>
Co-authored-by: Luca Fedeli <[email protected]>
Co-authored-by: David Grote <[email protected]>
Co-authored-by: Marco Acciarri <[email protected]>
  • Loading branch information
8 people authored Sep 24, 2024
1 parent 2e033c8 commit 086b0a3
Show file tree
Hide file tree
Showing 117 changed files with 5,481 additions and 3,673 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ jobs:
build_win_msvc:
name: MSVC C++17 w/o MPI
runs-on: windows-latest
if: github.event.pull_request.draft == false
# disabled due to issues in #5230
if: 0
#if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
face_areas_y = fields.FaceAreasyWrapper()
face_areas_z = fields.FaceAreaszWrapper()

print("======== Testing the wrappers of m_edge_lengths =========")
print("======== Testing the wrappers of edge_lengths =========")

ly_slice_x = edge_lengths_y[nx // 2, :, :]
lz_slice_x = edge_lengths_z[nx // 2, :, :]
Expand Down Expand Up @@ -159,7 +159,7 @@
print("Perimeter of the middle z-slice:", perimeter_slice_z)
assert np.isclose(perimeter_slice_z, perimeter_slice_z_true, rtol=1e-05, atol=1e-08)

print("======== Testing the wrappers of m_face_areas =========")
print("======== Testing the wrappers of face_areas =========")

Sx_slice = np.sum(face_areas_x[nx // 2, :, :])
dx = (xmax - xmin) / nx
Expand Down
Loading

0 comments on commit 086b0a3

Please sign in to comment.