]> SALOME platform Git repositories - tools/medcoupling.git/blobdiff - src/ParaMEDMEM/InterpolationMatrix.hxx
Salome HOME
refactor!: remove adm_local/ directory
[tools/medcoupling.git] / src / ParaMEDMEM / InterpolationMatrix.hxx
index bf26db18b0e4504570fdad864c40e71740ca9249..4d966ee5380da74fed371299e9f22e584d97d160 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2021  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2024  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -54,11 +54,14 @@ namespace MEDCoupling
                          const mcIdType* distant_elems, const std::string& srcMeth, const std::string& targetMeth);
     void finishContributionW(ElementLocator& elementLocator);
     void finishContributionL(ElementLocator& elementLocator);
+    MCAuto<DataArrayIdType> retrieveNonFetchedIdsTarget(mcIdType nbTuples) const;
     void multiply(MEDCouplingFieldDouble& field) const;
+    MCAuto<DataArrayIdType> retrieveNonFetchedIdsSource() const;
     void transposeMultiply(MEDCouplingFieldDouble& field)const;
     void prepare();
     mcIdType getNbRows() const { return ToIdType(_row_offsets.size()); }
     MPIAccessDEC* getAccessDEC() { return _mapping.getAccessDEC(); }
+    void setDefaultValue(double val) { _presence_dft_value = true;  _dft_value = val; }
   private:
     void computeConservVolDenoW(ElementLocator& elementLocator);
     void computeIntegralDenoW(ElementLocator& elementLocator);
@@ -93,6 +96,8 @@ namespace MEDCoupling
   private:
     bool isSurfaceComputationNeeded(const std::string& method) const;
   private:
+    bool _presence_dft_value = false;
+    double _dft_value = 0.0;
     const MEDCoupling::ParaFIELD *_source_field;
     std::vector<mcIdType> _row_offsets;
     std::map<std::pair<int,mcIdType>, mcIdType > _col_offsets;