aboutsummaryrefslogtreecommitdiff
path: root/src/rdf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rdf.cc')
-rw-r--r--src/rdf.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/rdf.cc b/src/rdf.cc
index 06ca778..1da8b25 100644
--- a/src/rdf.cc
+++ b/src/rdf.cc
@@ -167,8 +167,12 @@ namespace Formaline
<< "\t<cctk:hasVersion>" << version << "</cctk:hasVersion>" << endl
<< "\t<cctk:compiledAt>" << compiled_at << "</cctk:compiledAt>" << endl
<< "\t<cctk:startedAt>" << started_at << "</cctk:startedAt>" << endl
-<< "\t<cctk:cwd>" << cwd << "</cctk:cwd>" << endl
-<< "</cctk:Simulation>" << endl << endl;
+<< "\t<cctk:cwd>" << cwd << "</cctk:cwd>" << endl;
+ const char* const pbsJobID = getenv ("PBS_JOBID");
+ if (pbsJobID) {
+ msgbuf << "\t<cctk:pbsJobID>" << clean (pbsJobID) << "</cctk:pbsJobID>" << endl;
+ }
+ msgbuf << "</cctk:Simulation>" << endl << endl;
//