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,8 +231,12 @@ int main(int argc, char** argv) {
if(userId=="")
userId = getEnv("SLURM_JOB_USER");
if(nodelist=="")
if(nodelist=="") {
nodelist = getEnv("SLURM_JOB_NODELIST");
if(nodelist=="") {
nodelist = getEnv("SLURM_NODELIST");
}
}
std::cout << "JOBID = " << jobId << std::endl;
std::cout << "USER = " << userId << std::endl;
......
Supports Markdown
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