From: Anthony Geay Date: Wed, 16 Aug 2023 09:49:58 +0000 (+0200) Subject: [EDF27375] : clean up before integration X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fagy%2Fedf27375;p=tools%2Fmedcoupling.git [EDF27375] : clean up before integration --- diff --git a/src/ParaMEDMEM/InterpolationMatrix.cxx b/src/ParaMEDMEM/InterpolationMatrix.cxx index daee514fc..b419e8d0c 100644 --- a/src/ParaMEDMEM/InterpolationMatrix.cxx +++ b/src/ParaMEDMEM/InterpolationMatrix.cxx @@ -900,7 +900,7 @@ namespace MEDCoupling //on source side : sending T=VT^(-1).(W.S) //on target side :: receiving T and storing it in field - _mapping.sendRecv(target_value.data(),field,this->_presence_dft_value,this->_dft_value); + _mapping.sendRecv(target_value.data(),field); if( _target_group.containsMyRank() ) { diff --git a/src/ParaMEDMEM/MxN_Mapping.cxx b/src/ParaMEDMEM/MxN_Mapping.cxx index c0e922234..2d2ac386a 100644 --- a/src/ParaMEDMEM/MxN_Mapping.cxx +++ b/src/ParaMEDMEM/MxN_Mapping.cxx @@ -158,7 +158,7 @@ namespace MEDCoupling * The ids that were defined by addElementFromSource method * are sent. */ - void MxN_Mapping::sendRecv(double* sendfield, MEDCouplingFieldDouble& field, bool isDftValue, double dftValue) const + void MxN_Mapping::sendRecv(double* sendfield, MEDCouplingFieldDouble& field) const { CommInterface comm_interface=_union_group->getCommInterface(); const MPIProcessorGroup* group = static_cast(_union_group); @@ -213,12 +213,9 @@ namespace MEDCoupling //setting the received values in the field DataArrayDouble *fieldArr=field.getArray(); double* recvptr=recvbuf; - mcIdType nbTuples(fieldArr->getNumberOfTuples()); - std::vector hitMachine(nbTuples,false); for (int i=0; i< _recv_proc_offsets[_union_group->size()]; i++) { mcIdType recvId(_recv_ids[i]); - hitMachine[recvId] = true; for (int icomp=0; icompgetIJ(recvId,icomp); diff --git a/src/ParaMEDMEM/MxN_Mapping.hxx b/src/ParaMEDMEM/MxN_Mapping.hxx index 8b44b7d75..2f47148a9 100644 --- a/src/ParaMEDMEM/MxN_Mapping.hxx +++ b/src/ParaMEDMEM/MxN_Mapping.hxx @@ -46,7 +46,7 @@ namespace MEDCoupling void prepareSendRecv(); void sendRecv(MEDCouplingFieldDouble& field); MCAuto retrieveNonFetchedIdsTarget(mcIdType nbTuples) const; - void sendRecv(double* sendfield, MEDCouplingFieldDouble& field, bool isDftValue, double dftValue) const ; + void sendRecv(double* sendfield, MEDCouplingFieldDouble& field) const ; void reverseSendRecv(double* recvfield, MEDCouplingFieldDouble& field) const ; //