- MEDCouplingAutoRefCountObjectPtr<DataArrayInt> arr(DataArrayInt::Aggregate(arrs));
- arr->sort();
- int oldNbTuples(arr->getNumberOfTuples());
- arr=arr->buildUnique();
- if(oldNbTuples!=arr->getNumberOfTuples())
- throw INTERP_KERNEL::Exception("MEDFileField1TSStructItem2::BuildAggregationOf : some entities are present several times !");
- if(arr->isIdentity() && oldNbTuples==nbEntityRef)
- {
- std::pair<int,int> p(0,nbEntityRef);
- std::string a,b;
- MEDFileField1TSStructItem2 ret(gt,p,a,b);
- ret._nb_of_entity=nbEntityRef;
- return ret;
- }
- else
- {
- arr->setName("???");
- std::pair<int,int> p(0,oldNbTuples);
- std::string a,b;
- MEDFileField1TSStructItem2 ret(gt,p,a,b);
- ret._nb_of_entity=nbEntityRef;
- ret._pfl=arr;
- return ret;
- }
+ }
+ MEDCouplingAutoRefCountObjectPtr<DataArrayInt> arr(DataArrayInt::Aggregate(arrs));
+ arr->sort();
+ int oldNbTuples(arr->getNumberOfTuples());
+ arr=arr->buildUnique();
+ if(oldNbTuples!=arr->getNumberOfTuples())
+ throw INTERP_KERNEL::Exception("MEDFileField1TSStructItem2::BuildAggregationOf : some entities are present several times !");
+ if(arr->isIdentity() && oldNbTuples==nbEntityRef)
+ {
+ std::pair<int,int> p(0,nbEntityRef);
+ std::string a,b;
+ MEDFileField1TSStructItem2 ret(gt,p,a,b);
+ ret._nb_of_entity=nbEntityRef;
+ return ret;
+ }
+ else
+ {
+ arr->setName("???");
+ std::pair<int,int> p(0,oldNbTuples);
+ std::string a,b;
+ MEDFileField1TSStructItem2 ret(gt,p,a,b);
+ ret._nb_of_entity=nbEntityRef;
+ ret._pfl=arr;
+ return ret;