Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Added comment regard Datatype::keyvals
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 15 Mar 2018 10:19:52 +0000 (11:19 +0100)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 28 Mar 2018 15:31:39 +0000 (17:31 +0200)
src/smpi/mpi/smpi_datatype.cpp

index 7f5470a..5beb552 100644 (file)
@@ -97,8 +97,8 @@ CREATE_MPI_DATATYPE(MPI_PTR, void*);
 namespace simgrid{
 namespace smpi{
 
 namespace simgrid{
 namespace smpi{
 
-std::unordered_map<int, smpi_key_elem> Datatype::keyvals_;
-int Datatype::keyval_id_=0;
+std::unordered_map<int, smpi_key_elem> Datatype::keyvals_; // required by the Keyval class implementation
+int Datatype::keyval_id_=0; // required by the Keyval class implementation
 
 Datatype::Datatype(int size,MPI_Aint lb, MPI_Aint ub, int flags) : name_(nullptr), size_(size), lb_(lb), ub_(ub), flags_(flags), refcount_(1){
 #if SIMGRID_HAVE_MC
 
 Datatype::Datatype(int size,MPI_Aint lb, MPI_Aint ub, int flags) : name_(nullptr), size_(size), lb_(lb), ub_(ub), flags_(flags), refcount_(1){
 #if SIMGRID_HAVE_MC