mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
allow implicit convertion int->identifications type
This commit is contained in:
parent
299717de55
commit
b8b802de6b
@ -124,6 +124,8 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
|||||||
.value("CLOSEEDGES", Identifications::CLOSEEDGES)
|
.value("CLOSEEDGES", Identifications::CLOSEEDGES)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
py::implicitly_convertible<int, Identifications::ID_TYPE>();
|
||||||
|
|
||||||
py::class_<NgMPI_Comm> (m, "MPI_Comm")
|
py::class_<NgMPI_Comm> (m, "MPI_Comm")
|
||||||
#ifdef NG_MPI4PY
|
#ifdef NG_MPI4PY
|
||||||
.def(py::init([] (mpi4py_comm comm)
|
.def(py::init([] (mpi4py_comm comm)
|
||||||
|
Loading…
Reference in New Issue
Block a user