allow implicit convertion int->identifications type

This commit is contained in:
mhochsteger@cerbsim.com 2021-12-06 10:59:09 +01:00
parent 299717de55
commit b8b802de6b

View File

@ -124,6 +124,8 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
.value("CLOSEEDGES", Identifications::CLOSEEDGES)
;
py::implicitly_convertible<int, Identifications::ID_TYPE>();
py::class_<NgMPI_Comm> (m, "MPI_Comm")
#ifdef NG_MPI4PY
.def(py::init([] (mpi4py_comm comm)