Skip to content

Commit 347a411

Browse files
committed
Try to fix BASISREALV
1 parent fc2f598 commit 347a411

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Base/RealVect.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ void init_RealVect(py::module &m) {
125125
.def_static("zero_vector", &RealVect::TheZeroVector)
126126
.def_static("unit_vector", &RealVect::TheUnitVector)
127127

128-
.def("BASISREALV", &BASISREALV<AMREX_SPACEDIM>, "return basis vector in given coordinate direction")
128+
.def("BASISREALV", [](int dir) {
129+
return BASISREALV<AMREX_SPACEDIM>(dir); },
130+
"return basis vector in given coordinate direction")
129131
;
130132

131133
m.def("min", [](const RealVect& a, const RealVect& b) {

0 commit comments

Comments
 (0)