* renumbering. The underlying mesh is deeply copied and its cells are also permuted.
* The number of cells remains the same; for that the permutation array \a old2NewBg
* should not contain equal ids.
+ * ** Warning, this method modifies the mesh aggreagated by \a this (by performing a deep copy ) **.
+ *
* \param [in] old2NewBg - the permutation array in "Old to New" mode. Its length is
* to be equal to \a this->getMesh()->getNumberOfCells().
* \param [in] check - if \c true, \a old2NewBg is transformed to a new permutation
_type->renumberCells(old2NewBg,check);
std::vector<DataArrayDouble *> arrays;
_time_discr->getArrays(arrays);
- _type->renumberArraysForCell(_mesh,arrays,old2NewBg,check);
+ std::vector<DataArray *> arrays2(arrays.size()); std::copy(arrays.begin(),arrays.end(),arrays2.begin());
+ _type->renumberArraysForCell(_mesh,arrays2,old2NewBg,check);
//
updateTime();
}
* duplicates are removed.<br>
* \param [in] compType - specifies a cell comparison technique. Meaning of its
* valid values [0,1,2] is explained in the description of
- * MEDCouplingUMesh::zipConnectivityTraducer() which is called by this method.
+ * MEDCouplingPointSet::zipConnectivityTraducer() which is called by this method.
* \param [in] epsOnVals - a precision used to compare field
* values at merged cells. If the values differ more than \a epsOnVals, an
* exception is thrown.