Skip to content

Commit 8eb42fd

Browse files
revert changes
1 parent a3e2a12 commit 8eb42fd

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Base/RealVect.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313
#include <optional>
1414
#include <vector>
1515

16-
#if (AMREX_SPACEDIM == 3)
17-
namespace {
18-
using pyamrex_realvect_crossproduct_f = amrex::RealVect (amrex::RealVect::*)(const amrex::RealVect&) const noexcept;
19-
pyamrex_realvect_crossproduct_f pyamrex_realvect_crossproduct = &amrex::RealVect::crossProduct;
20-
}
21-
#endif
2216

2317
void init_RealVect(py::module &m) {
2418
using namespace amrex;
@@ -99,7 +93,7 @@ void init_RealVect(py::module &m) {
9993
.def(py::self * py::self)
10094
.def("dotProduct", &RealVect::dotProduct, "Return dot product of this vector with another")
10195
#if (AMREX_SPACEDIM == 3)
102-
.def("crossProduct", pyamrex_realvect_crossproduct, "Return cross product of this vector with another")
96+
.def("crossProduct", &RealVect::crossProduct<>, "Return cross product of this vector with another")
10397
#endif
10498
.def("__mul__",
10599
py::overload_cast<Real>(&RealVect::operator*, py::const_))

0 commit comments

Comments
 (0)