#define __AXIS(i) (&_axes[(i)*_dim])
#define __MIN(i) _minmax[i*2]
#define __MAX(i) _minmax[i*2+1]
-#define __MYID (long(this)%10000)
#define __DMP(msg) \
// cout << msg << endl
{
mcIdType idBg=direct?subEdge[2*j]:subEdge[2*nbOfSubEdges-2*j-1];
mcIdType idEnd=direct?subEdge[2*j+1]:subEdge[2*nbOfSubEdges-2*j-2];
- bool direction11,found=false;
- bool direct1;//store if needed the direction in 1
- mcIdType offset2;
- mcIdType nbOfSubEdges1;
+ bool direction11=false,found=false;
+ bool direct1=false;//store if needed the direction in 1
+ mcIdType offset2=0;
+ mcIdType nbOfSubEdges1=0;
for(std::vector<std::pair<mcIdType,std::pair<bool,mcIdType> > >::const_iterator it=idIns1.begin();it!=idIns1.end() && !found;it++)
{
mcIdType idIn1=(*it).first;//store if needed the cell id in 1
std::vector<QuadraticPolygon *>& results)
{
bool directionKnownInPol2=false;
- bool directionInPol2;
+ bool directionInPol2=false;
bool needCleaning = false;
for(std::list<QuadraticPolygon *>::iterator iter=pol1Zip.begin();iter!=pol1Zip.end();)
{
Interpolation3D(const InterpolationOptions& io);\r
template<class MyMeshType, class MatrixType>\r
typename MyMeshType::MyConnType interpolateMeshes(const MyMeshType& srcMesh, const MyMeshType& targetMesh, MatrixType& result, const std::string& method);\r
- private:\r
- SplittingPolicy _splitting_policy;\r
};\r
}\r
\r
int N1, int N2)
{
int i_loc, i_glob, j1, j1_glob, j2,j2_glob, j3, j3_glob, j4,j4_glob,
- i_prev, i_prev_glob, i_next, i_next_glob, nb_prev, sign, idim;
+ i_prev, i_prev_glob, i_next, i_next_glob, nb_prev=0, sign, idim;
const double * Poly1, * Poly2;
bool four_neighbours=false;
_terminus = N1 < 3 || N2<3;
{
bool cutFound(false); cutPlace=-1;// do not set axisId before to be sure that cutFound was set to true
const std::vector< std::pair<mcIdType,mcIdType> >& part(patchToBeSplit->getConstPart());
- mcIdType sign,minimumPatchLength(bso.getMinimumPatchLength());
+ mcIdType sign=0,minimumPatchLength(bso.getMinimumPatchLength());
const mcIdType dim(patchToBeSplit->getDimension());
std::vector<mcIdType> zeroCrossDims(dim,-1);
nbOfEdgesInFace=std::distance(bgFace,endFace);
if(!isPerm[i])
{
- bool b;
+ bool b=false;
for(std::size_t j=0;j<nbOfEdgesInFace;j++)
{
std::pair<mcIdType,mcIdType> p1(bgFace[j],bgFace[(j+1)%nbOfEdgesInFace]);
{
bool found=false;
med_int numdt,numit;
- med_float dtt;
+ med_float dtt=0.0;
std::vector< std::pair<int,int> > p(nstep);
for(int i=0;i<nstep;i++)
{
INTERP_KERNEL::AutoCppPtr<MeshOrStructMeshCls> MEDFileMeshL2::GetMeshIdFromName(med_idt fid, const std::string& mName, MEDCoupling::MEDCouplingMeshType& meshType, MEDCoupling::MEDCouplingAxisType& axType, int& dt, int& it, std::string& dtunit1)
{
- med_mesh_type type_maillage;
+ med_mesh_type type_maillage=MED_UNDEF_MESH_TYPE;
char maillage_description[MED_COMMENT_SIZE+1];
char dtunit[MED_LNAME_SIZE+1];
med_int spaceDim,dim;
med_sorting_type stype;
std::vector<std::string> ms;
med_int nstep;
- med_axis_type axistype;
+ med_axis_type axistype=MED_UNDEF_AXIS_TYPE;
for(int i=0;i<n && found==0;i++)
{
med_int naxis(MEDmeshnAxis(fid,i+1));
{
return allToAllTime( sendbuf, sendcount, sendtype , recvbuf, recvcount, recvtype ) ;
}
- int sts ;
+ int sts = 0;
int target ;
int sendoffset = 0 ;
int recvoffset = 0 ;
return allToAllvTime( sendbuf, sendcounts, sdispls, sendtype ,
recvbuf, recvcounts, rdispls, recvtype ) ;
}
- int sts ;
+ int sts = 0;
int target ;
int SendRequestId ;
int RecvRequestId ;
int MPIAccessDEC::allToAllTime( void* sendbuf, int sendcount , MPI_Datatype sendtype ,
void* recvbuf, int recvcount , MPI_Datatype recvtype )
{
- int sts ;
+ int sts = 0;
int target ;
int sendoffset = 0 ;
int SendTimeRequestId ;
void* recvbuf, int* recvcounts, int* rdispls,
MPI_Datatype recvtype )
{
- int sts ;
+ int sts = 0;
int target ;
int SendTimeRequestId ;
int SendDataRequestId ;
MEDCoupling::InterpKernelDEC dec (*source_group,*target_group);
- 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::MEDField* icocofield = nullptr;
string filename_xml1 = "square1_split";
string filename_xml2 = "square2_split";
MEDCoupling::InterpKernelDEC dec (*source_group,*target_group);
- MEDCoupling::MEDCouplingUMesh* mesh;
- MEDCoupling::MEDCouplingFieldDouble* mcfield;
+ MEDCoupling::MEDCouplingUMesh* mesh = nullptr;
+ MEDCoupling::MEDCouplingFieldDouble* mcfield = nullptr;
string filename_xml1 = "square1_split";
string filename_xml2 = "square2_split";
MEDCoupling::InterpKernelDEC dec (*source_group,*target_group);
- 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::MEDField* icocofield = nullptr;
char * tmp_dir_c = getenv("TMP");
string tmp_dir;
MEDCoupling::InterpKernelDEC dec (*source_group,*target_group);
- 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::MEDField* icocofield = nullptr;
char * tmp_dir_c = getenv("TMP");
string tmp_dir;
MEDCoupling::MPIProcessorGroup target_group(interface,3,size-1);
MEDCoupling::MPIProcessorGroup source_group (interface,0,2);
- MEDCoupling::MEDCouplingUMesh* mesh;
- MEDCoupling::ParaMESH* paramesh;
- MEDCoupling::ParaFIELD* parafield;
+ MEDCoupling::MEDCouplingUMesh* mesh = nullptr;
+ MEDCoupling::ParaMESH* paramesh = nullptr;
+ MEDCoupling::ParaFIELD* parafield = nullptr;
string filename_xml1 = INTERP_TEST::getResourceFile("square1_split");
string filename_2 = INTERP_TEST::getResourceFile("square1.med");
int intsendbuf[5] ;
double doublesendbuf[10] ;
int RequestId[10] ;
- int sts ;
+ int sts = 0;
int i , j ;
for ( j = 0 ; j < 3 ; j++ ) {
for ( i = 0 ; i < 10 ; i++ ) {
int target = 1 - myrank ;
int sendbuf[10] ;
int RequestId[10] ;
- int sts ;
+ int sts = 0;
int i ;
for ( i = 0 ; i < 10 ; i++ ) {
if ( myrank == 0 ) {
int j ;
for (j = 1 ; j <= i ; j++) {
int source ;
- MPI_Datatype datatype ;
- int outcount ;
+ MPI_Datatype datatype = 0;
+ int outcount = 0;
int flag ;
if ( myrank == 0 ) {
mpi_access.test( SendRequestId[j], flag ) ;
int RecvTimeRequestId[maxreq] ;
int SendRequestId[maxreq] ;
int RecvRequestId[maxreq] ;
- int sts ;
+ int sts = 0;
int sendbuf[maxreq] ;
int recvbuf[maxreq] ;
MEDCoupling::TimeMessage aSendTimeMsg[maxreq] ;
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::MEDField* icocofield = nullptr;
// To remove tmp files from disk
ParaMEDMEMTest_TmpFilesRemover aRemover;