From: caremoli Date: Wed, 16 Jan 2008 07:57:21 +0000 (+0000) Subject: CCAR: update from BR_Dev_For_4_0 branch X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2f2bcd517a3d2a6284236c77761cbd2faac48370;p=modules%2Fkernel.git CCAR: update from BR_Dev_For_4_0 branch --- diff --git a/src/Batch/BatchLight_BatchManager_PBS.cxx b/src/Batch/BatchLight_BatchManager_PBS.cxx index d2856d828..bba030a0c 100644 --- a/src/Batch/BatchLight_BatchManager_PBS.cxx +++ b/src/Batch/BatchLight_BatchManager_PBS.cxx @@ -184,7 +184,7 @@ namespace BatchLight { tempOutputFile << "if test " ; tempOutputFile << _mpiImpl->rank() ; tempOutputFile << " = 0; then" << endl ; - tempOutputFile << " ./runAppli --terminal --batch --modules=" ; + tempOutputFile << " ./runAppli --terminal --modules=" ; for ( int i = 0 ; i < _params.modulesList.size() ; i++ ) { tempOutputFile << _params.modulesList[i] ; if ( i != _params.modulesList.size()-1 ) diff --git a/src/Batch/BatchLight_BatchManager_SLURM.cxx b/src/Batch/BatchLight_BatchManager_SLURM.cxx index 67c1ed6fb..9a740e328 100644 --- a/src/Batch/BatchLight_BatchManager_SLURM.cxx +++ b/src/Batch/BatchLight_BatchManager_SLURM.cxx @@ -162,7 +162,7 @@ namespace BatchLight { tempOutputFile << _dirForTmpFiles ; tempOutputFile << ":$PYTHONPATH" << endl ; tempOutputFile << "if test $SLURM_PROCID = 0; then" << endl ; - tempOutputFile << " ./runAppli --terminal --batch --modules=" ; + tempOutputFile << " ./runAppli --terminal --modules=" ; for ( int i = 0 ; i < _params.modulesList.size() ; i++ ) { tempOutputFile << _params.modulesList[i] ; if ( i != _params.modulesList.size()-1 ) @@ -173,13 +173,12 @@ namespace BatchLight { tempOutputFile << " do" << endl ; tempOutputFile << " arglist=\"$arglist YACS_Server_\"$ip" << endl ; tempOutputFile << " done" << endl ; - tempOutputFile << " sleep 5" << endl ; + tempOutputFile << " ./runSession waitNS.sh" << endl ; tempOutputFile << " ./runSession waitContainers.py $arglist" << endl ; tempOutputFile << " ./runSession python ~/" << _dirForTmpFiles << "/" << _fileNameToExecute << ".py" << endl; tempOutputFile << " ./runSession killCurrentPort" << endl; tempOutputFile << "else" << endl ; - tempOutputFile << " sleep 5" << endl ; - tempOutputFile << " ./runSession waitNS.py" << endl ; + tempOutputFile << " ./runSession waitNS.sh" << endl ; tempOutputFile << " ./runSession SALOME_Container 'YACS_Server_'${SLURM_PROCID}" << endl ; tempOutputFile << "fi" << endl ; tempOutputFile.flush(); @@ -226,7 +225,7 @@ namespace BatchLight { tempOutputFile << "#! /bin/sh -f" << endl ; tempOutputFile << "#BSUB -n " << nbproc << endl ; - tempOutputFile << "#BSUB -o ~/" << _dirForTmpFiles << "/runSalome.log%J" << endl ; + tempOutputFile << "#BSUB -o " << _dirForTmpFiles << "/runSalome.log%J" << endl ; tempOutputFile << "mpirun -srun ~/" << _dirForTmpFiles << "/runSalome_" << _fileNameToExecute << "_Batch.sh" << endl ; tempOutputFile.flush(); tempOutputFile.close();