-// Copyright (C) 2007-2014 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2015 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
int theFirstLevFull;
bool ret0=isFullyOnOneLev(meshSt,theFirstLevFull);
const MEDFileField1TSStructItem2& otherNodeIt(other._items[0]);
+ int nbOfNodes(meshSt->getNumberOfNodes());
if(otherNodeIt.getPflName().empty())
{//on all nodes
if(!ret0)
return false;
- return theFirstLevFull==0;
+ std::vector<bool> nodesFetched(nbOfNodes,false);
+ meshSt->getTheMesh()->whichAreNodesFetched(*this,globs,nodesFetched);
+ if(std::find(nodesFetched.begin(),nodesFetched.end(),false)==nodesFetched.end())
+ return theFirstLevFull==0;
+ else
+ return false;
}
else
{
const DataArrayInt *pfl=globs->getProfile(otherNodeIt.getPflName().c_str());
MEDCouplingAutoRefCountObjectPtr<DataArrayInt> cpyPfl(pfl->deepCpy());
cpyPfl->sort();
- int nbOfNodes(meshSt->getNumberOfNodes());
if(cpyPfl->isIdentity() && cpyPfl->getNumberOfTuples()==nbOfNodes)
{//on all nodes also !
if(!ret0)