void simulated_start();
double simulated_elapsed() const;
MPI_Comm comm_world() const;
- bool comm_self_is_set() {return (comm_self_ != MPI_COMM_NULL);};
+ bool comm_self_is_set() const { return (comm_self_ != MPI_COMM_NULL); };
MPI_Comm comm_self();
MPI_Comm comm_intra();
void set_comm_intra(MPI_Comm comm);
if (not f2c_lookup_)
f2c_lookup_ = std::make_unique<f2c_lookup_type>();
}
- int f2c_id() { return my_f2c_id_; }
+ int f2c_id() const { return my_f2c_id_; }
static int global_f2c_id() { return f2c_id_; }
static void f2c_id_increment() { f2c_id_++; }
static F2C* f2c(int id);
static void finish_initialization() { num_default_handles_ = f2c_lookup_->size(); }
static f2c_lookup_type::size_type get_num_default_handles() { return num_default_handles_; }
- std::string call_location(){ return call_location_; }
+ const std::string& call_location() const { return call_location_; }
};
}
int tag() const { return tag_; }
int flags() const { return flags_; }
bool detached() const { return detached_; }
- std::string name() const {return std::string("MPI_Request");}
+ std::string name() const override { return std::string("MPI_Request"); }
MPI_Datatype type() const { return old_type_; }
void print_request(const char* message) const;
void start();