-/* Copyright (c) 2013-2014. The SimGrid Team.
+/* Copyright (c) 2013-2017. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "../colls_private.h"
-#include <math.h>
+#include "../colls_private.hpp"
+#include <cmath>
/*****************************************************************************
}
return 0;
}
-
+namespace simgrid{
+namespace smpi{
int Coll_alltoall_3dmesh::alltoall(void *send_buff, int send_count,
MPI_Datatype send_type,
void *recv_buff, int recv_count,
num_procs = comm->size();
extent = send_type->get_extent();
- if (!alltoall_check_is_3dmesh(num_procs, &X, &Y, &Z))
+ if (not alltoall_check_is_3dmesh(num_procs, &X, &Y, &Z))
return MPI_ERR_OTHER;
num_reqs = X;
smpi_free_tmp_buffer(tmp_buff2);
return MPI_SUCCESS;
}
+}
+}