#include <list>
#include <set>
#include <algorithm>
+
using namespace std;
struct VTKField
vtkQuadratureSchemeDefinition* def=vtkQuadratureSchemeDefinition::New();
int cellType=vtkMedUtilities::GetVTKCellType(loc->GetGeometryType());
+ // Control to avoid crahs when loading a file with structural elements.
+ // This should be removed in version 7.1.0 of SALOME.
+ // See mantis issue 21990
+ if(loc->GetGeometryType() >= MED_STRUCT_GEO_INTERNAL)
+ {
+ vtkErrorMacro("You are loading a file containing structural elements BUT they are still not supported");
+ return;
+ }
+ if(loc->GetWeights()->GetVoidPointer(0) == NULL)
+ return;
def->Initialize(cellType, vtkMedUtilities::GetNumberOfPoint(
loc->GetGeometryType()), loc->GetNumberOfQuadraturePoint(),
(double*)loc->GetShapeFunction()->GetVoidPointer(0),