partitionedmapserializer.cpp 666 B

1234567891011121314151617181920
  1. ////////////////////////////////////////////////////////////////////////////////
  2. /// \file partitionedmapserializer.cpp
  3. /// \brief Implementation file for PartitionedMapSerializer/Deserializer
  4. ///
  5. /// Since these classes are templates, most of their implementation is in the
  6. /// header.
  7. ///
  8. /// \author Joe Siltberg
  9. /// $Date: 2013-10-10 10:20:33 +0200 (Thu, 10 Oct 2013) $
  10. ///
  11. ////////////////////////////////////////////////////////////////////////////////
  12. #include "partitionedmapserializer.h"
  13. #include <sstream>
  14. std::string create_path(const char* directory, int rank) {
  15. std::ostringstream os;
  16. os << directory << "/" << rank << ".state";
  17. return os.str();
  18. }