- remove redundent if conditions
- Initialize member "ndims_" in an initialization list.
recvbuf_is_empty=0;
} else
// #Request is below rank: it's a irecv
recvbuf_is_empty=0;
} else
// #Request is below rank: it's a irecv
- if(op!=MPI_OP_NULL) op->apply( tmpbufs[index], recvbuf, &count, datatype);
+ op->apply(tmpbufs[index], recvbuf, &count, datatype);
if (!datatype->is_valid() || op == MPI_OP_NULL) {
retval = MPI_ERR_ARG;
} else {
if (!datatype->is_valid() || op == MPI_OP_NULL) {
retval = MPI_ERR_ARG;
} else {
- if(op!=MPI_OP_NULL) op->apply( inbuf, inoutbuf, &count, datatype);
+ op->apply(inbuf, inoutbuf, &count, datatype);
retval = MPI_SUCCESS;
}
smpi_bench_begin();
retval = MPI_SUCCESS;
}
smpi_bench_begin();
-/* 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. */
-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];
class Topo_Cart: public Topo {
private:
class Topo_Cart: public Topo {
private:
int ndims_;
int *dims_;
int *periodic_;
int ndims_;
int *dims_;
int *periodic_;