From b8666a802ba9257d28819a12685dd300039303b9 Mon Sep 17 00:00:00 2001 From: caremoli Date: Thu, 22 May 2008 15:27:56 +0000 Subject: [PATCH] CCAR: small modifications on LSF Batch class and on --pinter arg --- bin/runSalome.py | 8 +++++--- salome_adm/unix/config_files/check_lsf.m4 | 2 +- src/Batch/Batch_JobInfo_LSF.cxx | 2 +- src/Batch/Makefile.am | 2 +- src/Launcher/BatchLight_BatchManager_PBS.cxx | 5 ++++- src/NOTIFICATION_SWIG/Makefile.am | 2 -- 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/bin/runSalome.py b/bin/runSalome.py index f20b50794..bdad9dcfd 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -387,6 +387,11 @@ def startSalome(args, modules_list, modules_root_dir): init_time = os.times() if verbose(): print "startSalome ", args + + # set PYTHONINSPECT variable + if args['pinter']: + os.environ["PYTHONINSPECT"]="1" + import readline # # Initialisation ORB et Naming Service @@ -594,9 +599,6 @@ def startSalome(args, modules_list, modules_root_dir): anInterp=InterpServer(args) anInterp.run() - # set PYTHONINSPECT variable - if args['pinter']: - os.environ["PYTHONINSPECT"]="1" return clt diff --git a/salome_adm/unix/config_files/check_lsf.m4 b/salome_adm/unix/config_files/check_lsf.m4 index a4faddb3c..7f140f7cd 100755 --- a/salome_adm/unix/config_files/check_lsf.m4 +++ b/salome_adm/unix/config_files/check_lsf.m4 @@ -49,7 +49,7 @@ AC_DEFUN([CHECK_LSF], else LSF_LDFLAGS="-L${LSF_LIBDIR}" fi - LSF_LIBS="" + LSF_LIBS="-lbat -llsf" saved_LDFLAGS=${LDFLAGS} saved_LIBS=${LIBS} LDFLAGS="${LDFLAGS} ${LSF_LDFLAGS}" diff --git a/src/Batch/Batch_JobInfo_LSF.cxx b/src/Batch/Batch_JobInfo_LSF.cxx index 0e4715af7..2ae986cd0 100644 --- a/src/Batch/Batch_JobInfo_LSF.cxx +++ b/src/Batch/Batch_JobInfo_LSF.cxx @@ -84,7 +84,7 @@ namespace Batch { _param[TEXT] = jobInfo.numReasons ? lsb_pendreason(jobInfo.numReasons, jobInfo.reasonTb, p_jInfoHead, - p_ld) : ""; + p_ld,0) : ""; // _param[TMPDIR] = jobInfo.; _param[USEDCPUTIME] = static_cast(jobInfo.cpuTime); // _param[USEDDISKSIZE] = jobInfo.; diff --git a/src/Batch/Makefile.am b/src/Batch/Makefile.am index 0ec62e54c..6db79ed43 100644 --- a/src/Batch/Makefile.am +++ b/src/Batch/Makefile.am @@ -185,7 +185,7 @@ LIB_SRC += \ Batch_Job_LSF.cxx LIB_CPPFLAGS += ${LSF_INCLUDES} -LIB_LIBADD += ${LSF_LIBDIR} ${LSF_LIBS} +LIB_LIBADD += ${LSF_LDFLAGS} ${LSF_LIBS} endif diff --git a/src/Launcher/BatchLight_BatchManager_PBS.cxx b/src/Launcher/BatchLight_BatchManager_PBS.cxx index eec063a02..2312f73e4 100644 --- a/src/Launcher/BatchLight_BatchManager_PBS.cxx +++ b/src/Launcher/BatchLight_BatchManager_PBS.cxx @@ -199,7 +199,10 @@ namespace BatchLight { // ----------------------------------------------- // Code for rank 0 : launch runAppli and a container // RunAppli - tempOutputFile << " ./runAppli --terminal --modules=" ; + if(_params.modulesList.size()>0) + tempOutputFile << " ./runAppli --terminal --modules=" ; + else + tempOutputFile << " ./runAppli --terminal "; for ( int i = 0 ; i < _params.modulesList.size() ; i++ ) { tempOutputFile << _params.modulesList[i] ; if ( i != _params.modulesList.size()-1 ) diff --git a/src/NOTIFICATION_SWIG/Makefile.am b/src/NOTIFICATION_SWIG/Makefile.am index e043680f4..d171e39a5 100644 --- a/src/NOTIFICATION_SWIG/Makefile.am +++ b/src/NOTIFICATION_SWIG/Makefile.am @@ -56,8 +56,6 @@ _libNOTIFICATION_la_CPPFLAGS =\ _libNOTIFICATION_la_LDFLAGS = -module _libNOTIFICATION_la_LIBADD = ../Notification/libSalomeNotification.la -# @PYTHON_LIBS@ - swig_wrap.cpp : $(SWIG_SOURCES) $(SWIG) $(SWIG_FLAGS) -o $@ $< -- 2.39.2