From 71a96d64d9f2f5d40eec8c9d215150b5cf74c6b9 Mon Sep 17 00:00:00 2001 From: secher Date: Mon, 17 Sep 2007 13:05:29 +0000 Subject: [PATCH] just a little modification --- src/Batch/BatchLight_BatchManager_PBS.cxx | 2 +- src/Batch/BatchLight_BatchManager_SLURM.cxx | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/Batch/BatchLight_BatchManager_PBS.cxx b/src/Batch/BatchLight_BatchManager_PBS.cxx index ae539128c..b8f11c0d7 100644 --- a/src/Batch/BatchLight_BatchManager_PBS.cxx +++ b/src/Batch/BatchLight_BatchManager_PBS.cxx @@ -273,7 +273,7 @@ namespace BatchLight { tempOutputFile << "#! /bin/sh -f" << endl ; tempOutputFile << "#PBS -l nodes=" << nbnodes << endl ; - tempOutputFile << "#PBS -o runSalome.log" << endl ; + tempOutputFile << "#PBS -o ~/" << _dirForTmpFiles << "/runSalome.log" << endl ; tempOutputFile << _mpiImpl->boot("${PBS_NODEFILE}",nbnodes); tempOutputFile << _mpiImpl->run("${PBS_NODEFILE}",nbproc,filenameToExecute.str()); tempOutputFile << _mpiImpl->halt(); diff --git a/src/Batch/BatchLight_BatchManager_SLURM.cxx b/src/Batch/BatchLight_BatchManager_SLURM.cxx index 3e0fc0fbf..23c62f92e 100644 --- a/src/Batch/BatchLight_BatchManager_SLURM.cxx +++ b/src/Batch/BatchLight_BatchManager_SLURM.cxx @@ -231,14 +231,9 @@ namespace BatchLight { tempOutputFile.open(_TmpFileName.c_str(), ofstream::out ); tempOutputFile << "#! /bin/sh -f" << endl ; - tempOutputFile << "#BSUB -n " ; - tempOutputFile << nbproc << endl ; - tempOutputFile << "#BSUB -o runSalome.log%J" << endl ; - tempOutputFile << "mpirun -srun ~/" ; - tempOutputFile << _dirForTmpFiles ; - tempOutputFile << "/runSalome_" ; - tempOutputFile << _fileNameToExecute ; - tempOutputFile << "_Batch.sh" << endl ; + tempOutputFile << "#BSUB -n " << nbproc << endl ; + tempOutputFile << "#BSUB -o ~/" << _dirForTmpFiles << "/runSalome.log%J" << endl ; + tempOutputFile << "mpirun -srun ~/" << _dirForTmpFiles << "/runSalome_" << _fileNameToExecute << "_Batch.sh" << endl ; tempOutputFile.flush(); tempOutputFile.close(); chmod(_TmpFileName.c_str(), 0x1ED); -- 2.39.2