Commit cc366861 authored by Michael Ott's avatar Michael Ott
Browse files

Also parse SLURM_NODELIST if SLURM_JOB_NODELIST is not set.

parent 9cfa14d3
...@@ -231,9 +231,13 @@ int main(int argc, char** argv) { ...@@ -231,9 +231,13 @@ int main(int argc, char** argv) {
if(userId=="") if(userId=="")
userId = getEnv("SLURM_JOB_USER"); userId = getEnv("SLURM_JOB_USER");
if(nodelist=="") if(nodelist=="") {
nodelist = getEnv("SLURM_JOB_NODELIST"); nodelist = getEnv("SLURM_JOB_NODELIST");
if(nodelist=="") {
nodelist = getEnv("SLURM_NODELIST");
}
}
std::cout << "JOBID = " << jobId << std::endl; std::cout << "JOBID = " << jobId << std::endl;
std::cout << "USER = " << userId << std::endl; std::cout << "USER = " << userId << std::endl;
std::cout << "START = " << ts << std::endl; std::cout << "START = " << ts << std::endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment