Ignore:
Timestamp:
Apr 9, 2013, 11:44:26 AM (13 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
bd61b5c
Parents:
e85cfd
Message:

Added MPI classes output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/comm/mpi/datatype.cpp

    re85cfd r0bd47e  
    1515 *  You should have received a copy of the GNU General Public License
    1616 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
     18
     19/**
     20 * @file   datatype.cpp
     21 * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
     22 * @date   Tue Apr 09 12:19:58 2013
     23 *
     24 * @brief  Helper class to handle MPI datatypes.
     25 *
    1726 */
    1827
     
    3241
    3342#include <cstring>
     43#include <sstream>
    3444
    3545#include "comm/mpi/datatype.hpp"
     
    192202  }
    193203}
     204
     205std::string VMG::MPI::Datatype::ToString() const
     206{
     207  std::stringstream str;
     208  str << "VMG::MPI::Datatype {" << std::endl
     209      << "  Rank:        " << _rank << std::endl
     210      << "  TagSend:     " << _tag_send << std::endl
     211      << "  TagReceive:  " << _tag_recv << std::endl
     212      << "  Sizes:       " << _sizes << std::endl
     213      << "  Subsizes:    " << _subsizes << std::endl
     214      << "  Starts:      " << _starts << std::endl
     215      << "  AllocBuffer: " << _alloc_buffer << std::endl
     216      << "}";
     217
     218  return str.str();
     219}
Note: See TracChangeset for help on using the changeset viewer.