return fath->getArray();
}
-DataArrayDouble *MEDFileFieldPerMeshPerTypePerDisc::getArrayDouble()
-{
- return _father->getArrayDouble();
-}
-
-const DataArrayDouble *MEDFileFieldPerMeshPerTypePerDisc::getArrayDouble() const
-{
- const MEDFileFieldPerMeshPerType *fath=_father;
- return fath->getArrayDouble();
-}
-
const std::vector<std::string>& MEDFileFieldPerMeshPerTypePerDisc::getInfo() const
{
return _father->getInfo();
return fath->getArray();
}
-DataArrayDouble *MEDFileFieldPerMeshPerType::getArrayDouble()
-{
- return _father->getArrayDouble();
-}
-
-const DataArrayDouble *MEDFileFieldPerMeshPerType::getArrayDouble() const
-{
- const MEDFileFieldPerMesh *fath=_father;
- return fath->getArrayDouble();
-}
-
const std::vector<std::string>& MEDFileFieldPerMeshPerType::getInfo() const
{
return _father->getInfo();
return _father->getOrCreateAndGetArray();
}
-DataArrayDouble *MEDFileFieldPerMesh::getArrayDouble()
-{
- MEDFileField1TSWithoutSDA *fatherC=dynamic_cast<MEDFileField1TSWithoutSDA *>(_father);
- if(!fatherC)
- throw INTERP_KERNEL::Exception("MEDFileFieldPerMesh::getArrayDouble : Expected to be called on double array !");
- return fatherC->getOrCreateAndGetArrayDouble();
-}
-
-const DataArrayDouble *MEDFileFieldPerMesh::getArrayDouble() const
-{
- const MEDFileField1TSWithoutSDA *fatherC=dynamic_cast<const MEDFileField1TSWithoutSDA *>(_father);
- if(!fatherC)
- throw INTERP_KERNEL::Exception("MEDFileFieldPerMesh::getArrayDouble : Expected to be called on double array !");
- return fatherC->getOrCreateAndGetArrayDouble();
-}
-
const std::vector<std::string>& MEDFileFieldPerMesh::getInfo() const
{
return _father->getInfo();
std::vector< const MEDFileFieldPerMeshPerTypePerDisc *> entriesKept;
std::vector< const MEDFileFieldPerMeshPerTypePerDisc *> otherEntries;
getUndergroundDataArrayExt(entries);
- DataArrayDouble *arr=getArrayDouble();
+ DataArray *arr0=getArray();//tony
+ if(!arr0)
+ throw INTERP_KERNEL::Exception("MEDFileFieldPerMesh::renumberEntitiesLyingOnMesh : DataArray storing values of field is null !");
+ DataArrayDouble *arr=dynamic_cast<DataArrayDouble *>(arr0);//tony
+ if(!arr0)
+ throw INTERP_KERNEL::Exception("MEDFileFieldPerMesh::renumberEntitiesLyingOnMesh : DataArray storing values is double ! Not managed for the moment !");
int sz=0;
if(!arr)
throw INTERP_KERNEL::Exception("MEDFileFieldPerMesh::renumberEntitiesLyingOnMesh : DataArrayDouble storing values of field is null !");
int getStart() const { return _start; }
DataArray *getArray();
const DataArray *getArray() const;
- const DataArrayDouble *getArrayDouble() const;
- DataArrayDouble *getArrayDouble();
const std::vector<std::string>& getInfo() const;
std::string getProfile() const;
void setProfile(const char *newPflName);
int getNumberOfComponents() const;
DataArray *getArray();
const DataArray *getArray() const;
- const DataArrayDouble *getArrayDouble() const;
- DataArrayDouble *getArrayDouble();
const std::vector<std::string>& getInfo() const;
std::vector<std::string> getPflsReallyUsed() const;
std::vector<std::string> getLocsReallyUsed() const;
int getNumberOfComponents() const;
DataArray *getArray();
const DataArray *getArray() const;
- DataArrayDouble *getArrayDouble();
- const DataArrayDouble *getArrayDouble() const;
const std::vector<std::string>& getInfo() const;
std::vector<std::string> getPflsReallyUsed() const;
std::vector<std::string> getLocsReallyUsed() const;