Salome HOME
Fixed nodes file when nb procs > 128
[tools/libbatch.git] / src / LoadLeveler / Batch_BatchManager_eLL.cxx
index a04322add4eb6e1e2c32ec4a9af0f44d647a93b4..d8f4556d22ee04d6664eb2a657b9e0bdf0902493 100644 (file)
@@ -186,11 +186,7 @@ namespace Batch {
     tempOutputFile << "# @ queue" << endl;
 
     // generate nodes file
-    tempOutputFile << "NODEFILE=`mktemp nodefile-XXXXXXXXXX` || exit 1" << endl;
-    tempOutputFile << "for node in $LOADL_PROCESSOR_LIST; do" << endl;
-    tempOutputFile << "  echo $node >> $NODEFILE" << endl;
-    tempOutputFile << "done" << endl;
-    tempOutputFile << "export LIBBATCH_NODEFILE=$NODEFILE" << endl;
+    tempOutputFile << "export LIBBATCH_NODEFILE=$LOADL_HOSTFILE" << endl;
 
     // Launch the executable
     tempOutputFile << "cd " << workDir << endl;