A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
try to fix 32bits builds
[simgrid.git]
/
src
/
smpi
/
smpi_topo.cpp
diff --git
a/src/smpi/smpi_topo.cpp
b/src/smpi/smpi_topo.cpp
index
49a36a2
..
44a111b
100644
(file)
--- a/
src/smpi/smpi_topo.cpp
+++ b/
src/smpi/smpi_topo.cpp
@@
-1,5
+1,4
@@
-/* Copyright (c) 2014, 2017. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2014-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. */
/* 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. */
@@
-43,10
+42,8
@@
Topo_Cart::~Topo_Cart()
delete[] position_;
}
delete[] position_;
}
-Topo_Cart::Topo_Cart(int ndims)
+Topo_Cart::Topo_Cart(int ndims)
: ndims_(ndims)
{
{
- nnodes_ = 0;
- ndims_ = ndims;
dims_ = new int[ndims];
periodic_ = new int[ndims];
position_ = new int[ndims];
dims_ = new int[ndims];
periodic_ = new int[ndims];
position_ = new int[ndims];
@@
-261,7
+258,7
@@
int Topo_Cart::dim_get(int *ndims) {
/*
* This is a utility function, no need to have anything in the lower layer for this at all
*/
/*
* This is a utility function, no need to have anything in the lower layer for this at all
*/
-int Dims_create(int nnodes, int ndims, int dims[])
+int
Topo_Cart::
Dims_create(int nnodes, int ndims, int dims[])
{
/* Get # of free-to-be-assigned processes and # of free dimensions */
int freeprocs = nnodes;
{
/* Get # of free-to-be-assigned processes and # of free dimensions */
int freeprocs = nnodes;