Skip to content

Commit c0c1eb6

Browse files
committed
Update sum_boundary
1 parent 3e3ffa5 commit c0c1eb6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/Base/FabArray.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,20 +165,22 @@ namespace
165165
"Returns the sum of component \"comp\""
166166
)
167167
.def("sum_boundary",
168-
py::overload_cast< Periodicity const & >(&FAT::SumBoundary),
169-
py::arg("period"),
168+
py::overload_cast< Periodicity const &, bool >(&FAT::SumBoundary),
169+
py::arg("period"), py::arg("deterministic") = false,
170170
"Sum values in overlapped cells. The destination is limited to valid cells."
171171
)
172-
.def("sum_boundary", py::overload_cast< int, int, Periodicity const & >(&FAT::SumBoundary),
173-
py::arg("scomp"), py::arg("ncomp"), py::arg("period"),
172+
.def("sum_boundary", py::overload_cast< int, int, Periodicity const &, bool >(&FAT::SumBoundary),
173+
py::arg("scomp"), py::arg("ncomp"), py::arg("period"), py::arg("deterministic") = false,
174174
"Sum values in overlapped cells. The destination is limited to valid cells."
175175
)
176-
.def("sum_boundary", py::overload_cast< int, int, IntVect const&, Periodicity const & >(&FAT::SumBoundary),
176+
.def("sum_boundary", py::overload_cast< int, int, IntVect const&, Periodicity const &, bool >(&FAT::SumBoundary),
177177
py::arg("scomp"), py::arg("ncomp"), py::arg("nghost"), py::arg("period"),
178+
py::arg("deterministic") = false,
178179
"Sum values in overlapped cells. The destination is limited to valid cells."
179180
)
180-
.def("sum_boundary", py::overload_cast< int, int, IntVect const&, IntVect const&, Periodicity const & >(&FAT::SumBoundary),
181+
.def("sum_boundary", py::overload_cast< int, int, IntVect const&, IntVect const&, Periodicity const &, bool >(&FAT::SumBoundary),
181182
py::arg("scomp"), py::arg("ncomp"), py::arg("nghost"), py::arg("dst_nghost"), py::arg("period"),
183+
py::arg("deterministic") = false,
182184
"Sum values in overlapped cells. The destination is limited to valid cells."
183185
)
184186
;

0 commit comments

Comments
 (0)