+void State::copy_incomplete_comm_pattern()
+{
+ incomplete_comm_pattern_.clear();
+ for (unsigned long i = 0; i < mcapi::get().get_maxpid(); i++) {
+ std::vector<simgrid::mc::PatternCommunication> res;
+ for (auto const& comm : incomplete_communications_pattern[i])
+ res.push_back(comm->dup());
+ incomplete_comm_pattern_.push_back(std::move(res));
+ }
+}
+
+void State::copy_index_comm_pattern()
+{
+ communication_indices_.clear();
+ for (auto const& list_process_comm : initial_communications_pattern)
+ this->communication_indices_.push_back(list_process_comm.index_comm);
+}
+