From ec58a8203c1f6c005ec863a42cbb8e32cbfeea62 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Wed, 16 Aug 2023 11:49:58 +0200 Subject: [PATCH] [EDF27375] : clean up before integration --- src/ParaMEDMEM/InterpolationMatrix.cxx | 2 +- src/ParaMEDMEM/MxN_Mapping.cxx | 5 +---- src/ParaMEDMEM/MxN_Mapping.hxx | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) 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 ; // -- 2.39.2