File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 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
2317void 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_))
You can’t perform that action at this time.
0 commit comments