for(int index = 0; index < fielddata->GetNumberOfArrays(); index++)
{
vtkDataArray *data(fielddata->GetArray(index));
- vtkQuadratureSchemeDefinition **dict;
+ vtkQuadratureSchemeDefinition **dict(0);
vtkInformationQuadratureSchemeDefinitionVectorKey *key(vtkQuadratureSchemeDefinition::DICTIONARY());
if(key->Has(data->GetInformation()))
{
#include "vtkDoubleArray.h"
#include "vtkInformation.h"
#include "vtkQuadratureSchemeDefinition.h"
+#include "vtkInformationQuadratureSchemeDefinitionVectorKey.h"
#include "MEDUtilities.hxx"
#include "vtkFieldData.h"
}
if(oldArr->GetInformation()->Get(MEDUtilities::ELGA()))
arr->GetInformation()->Set(MEDUtilities::ELGA(),1);
+ vtkInformationQuadratureSchemeDefinitionVectorKey *key(vtkQuadratureSchemeDefinition::DICTIONARY());
+ if(key->Has(oldArr->GetInformation()))
+ {
+ int dictSize(key->Size(oldArr->GetInformation()));
+ vtkQuadratureSchemeDefinition **dict(new vtkQuadratureSchemeDefinition *[dictSize]);
+ key->GetRange(oldArr->GetInformation(),dict,0,0,dictSize);
+ key->SetRange(arr->GetInformation(),dict,0,0,dictSize);
+ delete [] dict;
+ }
if(oldArr->GetInformation()->Get(MEDUtilities::ELNO()))
arr->GetInformation()->Set(MEDUtilities::ELNO(),1);
}