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

Remove warnings for Draco

parent 089cd05c
No related branches found
No related tags found
2 merge requests!21Bugfix/nansampling,!3Bugfix/event manager show html
......@@ -133,7 +133,7 @@ public:
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
......
......@@ -60,7 +60,7 @@ public:
}
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 {
TIMEZONE("alltoallv");
AssertMpi(MPI_Alltoallv(const_cast<ItemType*>(in_to_send), const_cast<int*>(nb_items_to_send.data()),
......@@ -72,11 +72,11 @@ public:
template <class ItemType>
void alltoallv(const ItemType in_to_send[],
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>
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 {
TIMEZONE("alltoallv");
std::vector<int> nb_items_to_send_tmp = nb_items_to_send;
......@@ -101,7 +101,7 @@ public:
template <class ItemType>
void alltoallv(const ItemType in_to_send[],
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:
AssertMpi(MPI_Comm_rank(mpi_comm, &my_rank));
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);
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