Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
henricasanova committed Dec 20, 2023
1 parent ef4ca23 commit d1444da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
8 changes: 1 addition & 7 deletions include/wrench/simgrid_S4U_util/S4U_CommPort.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,7 @@ namespace wrench {

S4U_CommPort();

~S4U_CommPort() {
std::cerr << "IN COMMPORT DESTRUCTOR " << this->name << "\n";
std::cerr << " - mb_comm_posted " << mb_comm_posted << "\n";
std::cerr << " - mb_comm " << mb_comm << "\n";
std::cerr << " - mq_comm_posted " << mq_comm_posted << "\n";
std::cerr << " - mq_comm " << mq_comm << "\n";
}
~S4U_CommPort();

/**
* @brief Synchronously receive a message from a commport_name
Expand Down
11 changes: 11 additions & 0 deletions src/wrench/simgrid_S4U_util/S4U_CommPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ namespace wrench {
this->name = "cp_" + number;
}

/**
* @brief Destructor
*/
S4U_CommPort::~S4U_CommPort() {
std::cerr << "IN COMMPORT DESTRUCTOR " << this->name << "\n";
std::cerr << " - mb_comm_posted " << mb_comm_posted << "\n";
std::cerr << " - mb_comm " << mb_comm << "\n";
std::cerr << " - mq_comm_posted " << mq_comm_posted << "\n";
std::cerr << " - mq_comm " << mq_comm << "\n";
}

/**
* @brief Reset all communication
*/
Expand Down

0 comments on commit d1444da

Please sign in to comment.