throw INTERP_KERNEL::Exception("ParaSkyLineArray constructor : mismatch between # globalIds and len of indices in SkyLineArray.");
}
+std::size_t ParaSkyLineArray::getHeapMemorySizeWithoutChildren() const
+{
+ return 0;
+}
+
+std::vector<const BigMemoryObject *> ParaSkyLineArray::getDirectChildrenWithNull() const
+{
+ return {_ska,_global_ids};
+}
+
MCAuto<ParaSkyLineArray> ParaSkyLineArray::equiRedistribute(mcIdType nbOfEntities) const
{
//TODO
*
* This class is very specific to the requirement of parallel code computations.
*/
- class ParaSkyLineArray
+ class ParaSkyLineArray : public RefCountObject
{
public:
ParaSkyLineArray(MEDCouplingSkyLineArray *ska, DataArrayIdType *globalIds);
MCAuto<ParaSkyLineArray> equiRedistribute(mcIdType nbOfEntities) const;
virtual ~ParaSkyLineArray() { }
+ protected:
+ std::size_t getHeapMemorySizeWithoutChildren() const override;
+ std::vector<const BigMemoryObject *> getDirectChildrenWithNull() const override;
private:
MCAuto<MEDCouplingSkyLineArray> _ska;
MCAuto<DataArrayIdType> _global_ids;
#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;
+
+%feature("unref") ParaSkyLineArray "$this->decrRef();"
%nodefaultctor;
}
}
};
+
+ class ParaSkyLineArray : public RefCountObject
+ {
+ public:
+ ParaSkyLineArray(MEDCouplingSkyLineArray *ska, DataArrayIdType *globalIds);
+ %extend
+ {
+ ParaSkyLineArray *equiRedistribute(mcIdType nbOfEntities) const
+ {
+ MCAuto<ParaSkyLineArray> ret(self->equiRedistribute(nbOfEntities));
+ return ret.retn();
+ }
+ }
+ };
}
/* This object can be used only if MED_ENABLE_FVM is defined*/