MEDCouplingAutoRefCountObjectPtr<DataArrayInt> neigh00(tmp0);
MEDCouplingAutoRefCountObjectPtr<DataArrayInt> neighI00(tmp1);
MEDCouplingAutoRefCountObjectPtr<DataArrayInt> neigh00(tmp0);
MEDCouplingAutoRefCountObjectPtr<DataArrayInt> neighI00(tmp1);
// For each initial connex part of the sub-mesh (or said differently for each independent crack):
int seed = 0, nIter = 0;
int nIterMax = nCells2+1; // Safety net for the loop
// For each initial connex part of the sub-mesh (or said differently for each independent crack):
int seed = 0, nIter = 0;
int nIterMax = nCells2+1; // Safety net for the loop
- bool * hitCells = new bool[nCells2];
- for (int iii=0; iii<nCells2; iii++) hitCells[iii] = false;
+ std::vector<bool> hitCells(nCells2);
+ hitCells.assign(nCells2, false);
MEDCouplingAutoRefCountObjectPtr<DataArrayInt> cellsToModifyConn0_torenum = DataArrayInt::New();
cellsToModifyConn0_torenum->alloc(0,1);
while (nIter < nIterMax)
{
MEDCouplingAutoRefCountObjectPtr<DataArrayInt> cellsToModifyConn0_torenum = DataArrayInt::New();
cellsToModifyConn0_torenum->alloc(0,1);
while (nIter < nIterMax)
{