Ignore:
Timestamp:
Nov 5, 2018 7:18:02 AM (3 years ago)
Author:
maronga
Message:

processed comments from a previous revision, adjustments of palmrungui and palm.f90 to release 6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palmrungui

    r2825 r3487  
    2525# -----------------
    2626# $Id$
     27# Renamed options -d and -h to -r and -c.
     28#
     29# 2825 2018-02-20 21:48:27Z maronga
    2730# Adjusted to work with newest version of palmrun
    2831#
     
    228231
    229232            if ( len(matchitems) == 0 ):
    230                 listitem = filter(None,listitem.split(" -d"))[1]
     233                listitem = filter(None,listitem.split(" -r"))[1]
    231234                listitem = filter(None,listitem.split(" -"))[0]
    232235                listitem = listitem.replace(" ","");
     
    277280
    278281            # Change palmrunline accordingly
    279             self.change_commandline("d","")
     282            self.change_commandline("r","")
    280283            self.change_commandline("a","")
    281284            return
     
    311314        while i>=1:
    312315            listitem = history[i-1][17:len(history[i-1])-1]
    313             listitem = filter(None,listitem.split(" -d"))[1]
     316            listitem = filter(None,listitem.split(" -r"))[1]
    314317            listitem = filter(None,listitem.split(" -"))[0]
    315318            listitem = listitem.replace(" ","");               
     
    342345   
    343346        if ( drop_job == "Restart run" or drop_job == "Restart run (coupled atmosphere ocean)"):
    344            self.change_commandline("d","")
     347           self.change_commandline("r","")
    345348
    346349        # Check of ocean runs
     
    371374        param = splitline[1].split("-")
    372375   
    373         # Change in parameter "d" (jobname)
    374         if (id_str == "d"):
     376        # Change in parameter "r" (jobname)
     377        if (id_str == "r"):
    375378            filename = str(self.group_job.findChild(QtGui.QLineEdit,"line_jobname").text())
    376379            s = filename.split("JOBS/")
     
    390393                self.menuBar.findChild(QtGui.QMenu,"menuStart").actions()[3].setEnabled(False)
    391394                self.group_advanced.setEnabled(False)
    392                 self.delete_commandline("d")
     395                self.delete_commandline("r")
    393396                self.change_commandline("a","remove")
    394397                self.group_job.findChild(QtGui.QLabel,"label_usercode").setText("")
     
    535538        if ( self.sender() == self.group_execution.findChild(QtGui.QLineEdit, "line_host") ):
    536539            tmptext = self.group_execution.findChild(QtGui.QLineEdit,"line_host").text()
    537             self.change_commandline("h",tmptext)
     540            self.change_commandline("c",tmptext)
    538541
    539542        elif ( self.sender() == self.group_job.findChild(QtGui.QLineEdit, "line_jobname") ):
    540543            tmptext = self.group_job.findChild(QtGui.QLineEdit,"line_jobname").text()
    541             self.change_commandline("d",tmptext)
     544            self.change_commandline("r",tmptext)
    542545
    543546        elif ( self.sender() == self.group_execution.findChild(QtGui.QLineEdit,"line_q")):
     
    820823
    821824            # Check for suitable switch
    822             if ( parameter == "d"):
     825            if ( parameter == "r"):
    823826             
    824827                if ( options != ""):
     
    829832                    nojob = True
    830833               
    831             elif ( parameter == "h"):
     834            elif ( parameter == "c"):
    832835                self.group_execution.findChild(QtGui.QLineEdit,"line_host").setText(options)
    833836             
Note: See TracChangeset for help on using the changeset viewer.