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(
nullptr);
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;
58 pos = name.rfind(
'/');
59 if (pos != std::string::npos)
60 name.erase(0, pos + 1);
61 pos = name.rfind(
'.');
62 if (pos != std::string::npos)
63 name.erase(pos, name.size());
69 DEAL_II_NAMESPACE_CLOSE
const std::string operator()() const
static std::string base_name(const char *filename)