-// Copyright (C) 2017-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2017-2020 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include "ICoCoMEDField.hxx"
#include "ComponentTopology.hxx"
#include "ParaUMesh.hxx"
+#include "ParaSkyLineArray.hxx"
using namespace INTERP_KERNEL;
using namespace MEDCoupling;
%include "ICoCoMEDField.hxx"
%newobject MEDCoupling::ParaUMesh::getCellIdsLyingOnNodes;
+%newobject MEDCoupling::ParaSkyLineArray::equiRedistribute;
+%newobject MEDCoupling::ParaSkyLineArray::getSkyLineArray;
+%newobject MEDCoupling::ParaSkyLineArray::getGlobalIdsArray;
+
+%feature("unref") ParaSkyLineArray "$this->decrRef();"
%nodefaultctor;
}
}
};
+
+ class ParaSkyLineArray : public RefCountObject
+ {
+ public:
+ static ParaSkyLineArray *New(MEDCouplingSkyLineArray *ska, DataArrayIdType *globalIds);
+ %extend
+ {
+ ParaSkyLineArray(MEDCouplingSkyLineArray *ska, DataArrayIdType *globalIds)
+ {
+ return ParaSkyLineArray::New(ska,globalIds);
+ }
+
+ ParaSkyLineArray *equiRedistribute(mcIdType nbOfEntities) const
+ {
+ MCAuto<ParaSkyLineArray> ret(self->equiRedistribute(nbOfEntities));
+ return ret.retn();
+ }
+
+ MEDCouplingSkyLineArray *getSkyLineArray() const
+ {
+ MEDCouplingSkyLineArray *ret(self->getSkyLineArray());
+ if(ret)
+ ret->incrRef();
+ return ret;
+ }
+
+ DataArrayIdType *getGlobalIdsArray() const
+ {
+ DataArrayIdType *ret(self->getGlobalIdsArray());
+ if(ret)
+ ret->incrRef();
+ return ret;
+ }
+ }
+ };
}
/* This object can be used only if MED_ENABLE_FVM is defined*/