]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
fix: add missing vector header
authorSONOLET Aymeric <aymeric.sonolet@cea.fr>
Tue, 16 Apr 2024 20:53:03 +0000 (22:53 +0200)
committerSONOLET Aymeric <aymeric.sonolet@cea.fr>
Tue, 16 Apr 2024 20:53:03 +0000 (22:53 +0200)
src/ParaMEDMEM/ElementLocator.hxx

index 178da406f23c5daa4cd37d9144803c042156956f..0ef39fc62e61f801bf7e4c9508d607ee34d588c6 100644 (file)
 #ifndef __ELEMENTLOCATOR_HXX__
 #define __ELEMENTLOCATOR_HXX__
 
+#include <mpi.h>
+
+#include <string>
+#include <vector>
+
 #include "InterpolationOptions.hxx"
 #include "MCType.hxx"
 #include "MEDCouplingNatureOfFieldEnum"
 
-#include <mpi.h>
-#include <string>
-
 namespace MEDCoupling
 {
   class ParaFIELD;
@@ -48,7 +50,10 @@ namespace MEDCoupling
                       MEDCouplingPointSet*& target_mesh,
                       mcIdType*& distant_ids);
     void exchangeMethod(const std::string& sourceMeth, int idistantrank, std::string& targetMeth);
-    const std::vector<int>& getDistantProcIds() const { return _distant_proc_ids; }
+    const std::vector<int> &getDistantProcIds() const
+    {
+        return _distant_proc_ids;
+    }
     const MPI_Comm *getCommunicator() const;
     NatureOfField getLocalNature() const;
     //! This method is used to informed if there is -1D mesh on distant_group side or on local_group side.
@@ -88,8 +93,8 @@ namespace MEDCoupling
     int _local_cell_mesh_space_dim;
     bool _is_m1d_corr;
     MEDCouplingPointSet* _local_face_mesh;
-    std::vector<MEDCouplingPointSet*> _distant_cell_meshes;
-    std::vector<MEDCouplingPointSet*> _distant_face_meshes;
+    std::vector<MEDCouplingPointSet *> _distant_cell_meshes;
+    std::vector<MEDCouplingPointSet *> _distant_face_meshes;
     double* _domain_bounding_boxes;
     const ProcessorGroup& _distant_group;
     const ProcessorGroup& _local_group;
@@ -98,10 +103,11 @@ namespace MEDCoupling
     const MPI_Comm *_comm;
     //Attributes only used by lazy side
     std::vector<double> _values_added;
-    std::vector< std::vector<mcIdType> > _ids_per_working_proc;
-    std::vector< std::vector<mcIdType> > _ids_per_working_proc3;
-    std::vector< std::vector<double> > _values_per_working_proc;
-  public:
+    std::vector<std::vector<mcIdType> > _ids_per_working_proc;
+    std::vector<std::vector<mcIdType> > _ids_per_working_proc3;
+    std::vector<std::vector<double> > _values_per_working_proc;
+
+   public:
     static const int CUMULATIVE_POLICY=3;
     static const int NO_POST_TREATMENT_POLICY=7;
   };