16 #include <deal.II/base/job_identifier.h> 19 #ifdef DEAL_II_HAVE_UNISTD_H 23 DEAL_II_NAMESPACE_OPEN
31 time_t t = std::time(0);
32 id = std::string(
"JobId ");
34 #if defined(DEAL_II_HAVE_UNISTD_H) && defined(DEAL_II_HAVE_GETHOSTNAME) 37 id += std::string(name) + std::string(
" ");
39 id += std::string(
"unknown ");
42 id += std::string(std::ctime(&t));
56 std::string name(filename);
57 std::string::size_type pos = name.find(
".");
58 name.erase(pos, name.size());
59 pos = name.rfind(
"/");
60 if (pos < name.size())
67 DEAL_II_NAMESPACE_CLOSE
const std::string operator()() const
static std::string base_name(const char *filename)