diff options
author | 2022-08-02 13:28:02 -0700 | |
---|---|---|
committer | 2022-08-02 20:28:02 +0000 | |
commit | a4c36c317403d2b8050524ba2a37d8d237b0df32 (patch) | |
tree | d04e6a4f702d30f66011628d7c5451a78f4e411f /Source/Python | |
parent | ea29665ca7d4a9d8d45e0188653256ada73cfe90 (diff) | |
download | WarpX-a4c36c317403d2b8050524ba2a37d8d237b0df32.tar.gz WarpX-a4c36c317403d2b8050524ba2a37d8d237b0df32.tar.zst WarpX-a4c36c317403d2b8050524ba2a37d8d237b0df32.zip |
`SyncCurrent`: Pass References To Current MultiFabs (#3277)
* `SyncCurrent`: Pass References To Current MultiFabs
* Add Doxygen for `SyncCurrent`
Diffstat (limited to 'Source/Python')
-rw-r--r-- | Source/Python/WarpXWrappers.H | 4 | ||||
-rw-r--r-- | Source/Python/WarpXWrappers.cpp | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/Source/Python/WarpXWrappers.H b/Source/Python/WarpXWrappers.H index f4fa2a3fd..9d4f2475b 100644 --- a/Source/Python/WarpXWrappers.H +++ b/Source/Python/WarpXWrappers.H @@ -130,7 +130,9 @@ extern "C" { void warpx_FillBoundaryE (); void warpx_FillBoundaryB (); void warpx_SyncRho (); - void warpx_SyncCurrent (); + void warpx_SyncCurrent ( + const amrex::Vector<std::array<std::unique_ptr<amrex::MultiFab>,3>>& J_fp, + const amrex::Vector<std::array<std::unique_ptr<amrex::MultiFab>,3>>& J_cp); void warpx_UpdateAuxilaryData (); void warpx_PushParticlesandDepose (amrex::Real cur_time); diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp index ec15a67bf..4cca0b3c1 100644 --- a/Source/Python/WarpXWrappers.cpp +++ b/Source/Python/WarpXWrappers.cpp @@ -660,9 +660,11 @@ namespace WarpX& warpx = WarpX::GetInstance(); warpx.SyncRho(); } - void warpx_SyncCurrent () { + void warpx_SyncCurrent ( + const amrex::Vector<std::array<std::unique_ptr<amrex::MultiFab>,3>>& J_fp, + const amrex::Vector<std::array<std::unique_ptr<amrex::MultiFab>,3>>& J_cp) { WarpX& warpx = WarpX::GetInstance(); - warpx.SyncCurrent(); + warpx.SyncCurrent(J_fp, J_cp); } void warpx_UpdateAuxilaryData () { WarpX& warpx = WarpX::GetInstance(); |