-// Copyright (C) 2007-2016 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2021 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
#include "ParaMESH.hxx"
#include "ParaFIELD.hxx"
#include "ComponentTopology.hxx"
-#include "ICoCoMEDField.hxx"
#include "MEDLoader.hxx"
+#include "ICoCoMEDDoubleField.hxx"
+#include "MEDCouplingUMesh.hxx"
#include <string>
#include <cstring>
+
// use this define to enable lines, execution of which leads to Segmentation Fault
#define ENABLE_FAULTS
else
dec.setIntersectionType(INTERP_KERNEL::Convex);
- MEDCoupling::MEDCouplingUMesh* mesh;
- MEDCoupling::ParaMESH* paramesh;
- MEDCoupling::ParaFIELD* parafield;
- ICoCo::MEDField* icocofield ;
+ MEDCoupling::MEDCouplingUMesh* mesh = nullptr;
+ MEDCoupling::ParaMESH* paramesh = nullptr;
+ MEDCoupling::ParaFIELD* parafield = nullptr;
+ ICoCo::MEDDoubleField* icocofield = nullptr;
// To remove tmp files from disk
ParaMEDMEMTest_TmpFilesRemover aRemover;
for(int ielem=0; ielem<nb_local;ielem++)
value[ielem]=1.0;
- icocofield=new ICoCo::MEDField(parafield->getField());
+ icocofield=new ICoCo::MEDDoubleField(parafield->getField());
dec.attachLocalField(icocofield);
}
double *value=parafield->getField()->getArray()->getPointer();
for(int ielem=0; ielem<nb_local;ielem++)
value[ielem]=0.0;
- icocofield=new ICoCo::MEDField(parafield->getField());
+ icocofield=new ICoCo::MEDDoubleField(parafield->getField());
dec.attachLocalField(icocofield);
}