Skip to content

Commit

Permalink
X-Ref AMReX iMultiFab Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Feb 3, 2025
1 parent 4b56573 commit 663d037
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/Base/MultiFab.H
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ factory :
)
;

// TODO: Missing in AMReX iMultiFab as of v25.01
// TODO: Missing in AMReX iMultiFab as of v25.02
// https://github.com/AMReX-Codes/amrex/issues/4317
if constexpr (std::is_same_v<T, MultiFab>) {
py_MultiFab
.def("sum_unique",
Expand Down Expand Up @@ -478,7 +479,7 @@ factory :
)
;

// TODO: Missing in iMultiFab
// TODO: Missing in iMultiFab https://github.com/AMReX-Codes/amrex/issues/4317
if constexpr (std::is_same_v<T, MultiFab>) {
py_MultiFab
.def("add",
Expand All @@ -503,7 +504,7 @@ factory :
)
;

// TODO: Missing in iMultiFab
// TODO: Missing in iMultiFab https://github.com/AMReX-Codes/amrex/issues/4317
if constexpr (std::is_same_v<T, MultiFab>) {
py_MultiFab
.def("subtract",
Expand Down Expand Up @@ -554,7 +555,7 @@ factory :

if constexpr (std::is_same_v<T, MultiFab>) {
py_MultiFab
.def("divide", /* TODO: Missing in iMultiFab */
.def("divide", /* TODO: Missing in iMultiFab https://github.com/AMReX-Codes/amrex/issues/4317 */
[](T &self, T const &src, int srccomp, int comp, int numcomp, IntVect const &nghost) {
T::Divide(self, src, srccomp, comp, numcomp, nghost);
},
Expand All @@ -563,7 +564,7 @@ factory :
"The two MultiFabs MUST have the same underlying BoxArray."
)

.def("swap", /* TODO: Missing in iMultiFab */
.def("swap", /* TODO: Missing in iMultiFab https://github.com/AMReX-Codes/amrex/issues/4317 */
[](T &self, T &src, int srccomp, int comp, int numcomp, int nghost) {
T::Swap(self, src, srccomp, comp, numcomp, nghost);
},
Expand All @@ -572,7 +573,7 @@ factory :
"The two MultiFabs MUST have the same underlying BoxArray.\n"
"The swap is local."
)
.def("swap", /* TODO: Missing in iMultiFab */
.def("swap", /* TODO: Missing in iMultiFab https://github.com/AMReX-Codes/amrex/issues/4317 */
[](T &self, T &src, int srccomp, int comp, int numcomp, IntVect const &nghost) {
T::Swap(self, src, srccomp, comp, numcomp, nghost);
},
Expand Down

0 comments on commit 663d037

Please sign in to comment.