Skip to content

Commit 762c637

Browse files
Add template parameter to RealVect BASISREALV (#443)
Necessary for AMReX-Codes/amrex#4430 --------- Co-authored-by: Weiqun Zhang <[email protected]>
1 parent f7c8a7b commit 762c637

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, "return basis vector in given coordinate direction")
128+
.def("BASISREALV", [](int dir) -> RealVect {
129+
return amrex::BASISREALV(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)