Skip to content
Snippets Groups Projects
Commit a45de0ca authored by Berenger Bramas's avatar Berenger Bramas
Browse files

Remove warnings for Draco

parent 089cd05c
Branches
Tags
2 merge requests!21Bugfix/nansampling,!3Bugfix/event manager show html
...@@ -133,7 +133,7 @@ public: ...@@ -133,7 +133,7 @@ public:
nb_particles_allocated_recv = nb_to_receive; nb_particles_allocated_recv = nb_to_receive;
} }
exchanger.alltoallv(buffer_particles_send.get(), buffer_particles_recv.get(), mpi_movable_particle_type); exchanger.alltoallv_dt(buffer_particles_send.get(), buffer_particles_recv.get(), mpi_movable_particle_type);
// Trick re-use the buffer to have only real_number // Trick re-use the buffer to have only real_number
......
...@@ -60,7 +60,7 @@ public: ...@@ -60,7 +60,7 @@ public:
} }
template <class ItemType> template <class ItemType>
void alltoallv(const ItemType in_to_send[], void alltoallv_dt(const ItemType in_to_send[],
ItemType out_to_recv[], const MPI_Datatype& in_type) const { ItemType out_to_recv[], const MPI_Datatype& in_type) const {
TIMEZONE("alltoallv"); TIMEZONE("alltoallv");
AssertMpi(MPI_Alltoallv(const_cast<ItemType*>(in_to_send), const_cast<int*>(nb_items_to_send.data()), AssertMpi(MPI_Alltoallv(const_cast<ItemType*>(in_to_send), const_cast<int*>(nb_items_to_send.data()),
...@@ -72,11 +72,11 @@ public: ...@@ -72,11 +72,11 @@ public:
template <class ItemType> template <class ItemType>
void alltoallv(const ItemType in_to_send[], void alltoallv(const ItemType in_to_send[],
ItemType out_to_recv[]) const { ItemType out_to_recv[]) const {
alltoallv<ItemType>(in_to_send, out_to_recv, particles_utils::GetMpiType(ItemType())); alltoallv_dt<ItemType>(in_to_send, out_to_recv, particles_utils::GetMpiType(ItemType()));
} }
template <class ItemType> template <class ItemType>
void alltoallv(const ItemType in_to_send[], void alltoallv_dt(const ItemType in_to_send[],
ItemType out_to_recv[], const MPI_Datatype& in_type, const int in_nb_values_per_item) const { ItemType out_to_recv[], const MPI_Datatype& in_type, const int in_nb_values_per_item) const {
TIMEZONE("alltoallv"); TIMEZONE("alltoallv");
std::vector<int> nb_items_to_send_tmp = nb_items_to_send; std::vector<int> nb_items_to_send_tmp = nb_items_to_send;
...@@ -101,7 +101,7 @@ public: ...@@ -101,7 +101,7 @@ public:
template <class ItemType> template <class ItemType>
void alltoallv(const ItemType in_to_send[], void alltoallv(const ItemType in_to_send[],
ItemType out_to_recv[], const int in_nb_values_per_item) const { ItemType out_to_recv[], const int in_nb_values_per_item) const {
alltoallv<ItemType>(in_to_send, out_to_recv,particles_utils::GetMpiType(ItemType()), in_nb_values_per_item); alltoallv_dt<ItemType>(in_to_send, out_to_recv,particles_utils::GetMpiType(ItemType()), in_nb_values_per_item);
} }
}; };
......
...@@ -74,7 +74,7 @@ public: ...@@ -74,7 +74,7 @@ public:
AssertMpi(MPI_Comm_rank(mpi_comm, &my_rank)); AssertMpi(MPI_Comm_rank(mpi_comm, &my_rank));
AssertMpi(MPI_Comm_size(mpi_comm, &nb_processes)); AssertMpi(MPI_Comm_size(mpi_comm, &nb_processes));
assert(in_spatial_limit_per_proc.size() == nb_processes+1); assert(int(in_spatial_limit_per_proc.size()) == nb_processes+1);
hid_t plist_id_par = H5Pcreate(H5P_FILE_ACCESS); hid_t plist_id_par = H5Pcreate(H5P_FILE_ACCESS);
assert(plist_id_par >= 0); assert(plist_id_par >= 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment