+/*!
+ * This method is called to add NORM_POINT1 cells in \a this so that orphan nodes in \a verticesToAdd will be fetched.
+ */
+void MEDMeshMultiLev::appendVertices(const DataArrayInt *verticesToAdd, DataArrayInt *nr)
+{
+ int nbOfVertices(verticesToAdd->getNumberOfTuples());
+ std::size_t sz(_pfls.size());
+ _pfls.resize(sz+1);
+ _geo_types.resize(sz+1,INTERP_KERNEL::NORM_POINT1);
+ _nb_entities.resize(sz+1,nbOfVertices);
+ _node_reduction=nr; nr->incrRef();
+ _nb_nodes+=nbOfVertices;
+ const DataArrayInt *cf(_cell_fam_ids),*cn(_cell_num_ids),*nf(_node_fam_ids),*nn(_node_num_ids);
+ if(cf)
+ {
+ MEDCouplingAutoRefCountObjectPtr<DataArrayInt> tmp;
+ std::vector<const DataArrayInt *> a(2);
+ a[0]=cf;
+ if(nf)
+ tmp=nf->selectByTupleIdSafe(verticesToAdd->begin(),verticesToAdd->end());
+ else
+ {
+ tmp=DataArrayInt::New(); tmp->alloc(nbOfVertices,1); tmp->fillWithZero();
+ }
+ a[1]=tmp;
+ _cell_fam_ids=DataArrayInt::Aggregate(a);
+ _cell_fam_ids_nocpy=false;
+ }
+ if(cn)
+ {
+ MEDCouplingAutoRefCountObjectPtr<DataArrayInt> tmp;
+ std::vector<const DataArrayInt *> a(2);
+ a[0]=cn;
+ if(nn)
+ tmp=nn->selectByTupleIdSafe(verticesToAdd->begin(),verticesToAdd->end());
+ else
+ {
+ tmp=DataArrayInt::New(); tmp->alloc(nbOfVertices,1); tmp->fillWithZero();
+ }
+ a[1]=tmp;
+ _cell_num_ids=DataArrayInt::Aggregate(a);
+ _cell_num_ids_nocpy=false;
+ }
+}
+
+MEDMeshMultiLev::MEDMeshMultiLev(const MEDFileMesh *mesh):_mesh(mesh),_nb_nodes(0),_cell_fam_ids_nocpy(false)