Index: palm/trunk/SCRIPTS/palmrungui
===================================================================
--- palm/trunk/SCRIPTS/palmrungui	(revision 2718)
+++ palm/trunk/SCRIPTS/palmrungui	(revision 2825)
@@ -1,3 +1,3 @@
-#!/usr/bin/python -B
+#!/usr/bin/env python
 # -*- coding: utf-8 -*-
 #--------------------------------------------------------------------------------#
@@ -25,4 +25,7 @@
 # -----------------
 # $Id$
+# Adjusted to work with newest version of palmrun
+# 
+# 2718 2018-01-02 08:49:38Z maronga
 # Corrected "Former revisions" section
 # 
@@ -375,5 +378,4 @@
      
             if ( initialize == True ):#and self.group_runcontrol.isEnabled() == True ):
-                self.group_runcontrol.setEnabled(True)
                 self.group_execution.setEnabled(True)
                 self.group_job.findChild(QtGui.QComboBox,"drop_job").setEnabled(True)
@@ -383,5 +385,4 @@
             
             elif ( param[0] == ""):            
-                self.group_runcontrol.setEnabled(False)
                 self.group_execution.setEnabled(False)
                 self.group_job.findChild(QtGui.QComboBox,"drop_job").setEnabled(False)
@@ -430,6 +431,4 @@
                
                         
-                        
-                self.group_runcontrol.setEnabled(True)
                 self.group_execution.setEnabled(True)
                 self.drop_job.setEnabled(True)
@@ -438,14 +437,4 @@
         # Change in parameter "a" (run control list)
         elif (id_str == "a"): 
-            status_ts = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_ts").checkState()
-            status_pr = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_pr").checkState()
-            status_xy = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_xy").checkState()
-            status_xz = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_xz").checkState()
-            status_yz = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_yz").checkState()
-            status_3d = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_3d").checkState()
-            status_ma = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_ma").checkState()
-            status_sp = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_sp").checkState()
-            status_pts = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_pts").checkState()
-            status_prt = self.group_runcontrol.findChild(QtGui.QCheckBox,"check_prt").checkState()
     
             drop_job = self.group_job.findChild(QtGui.QComboBox,"drop_job").currentText()
@@ -472,34 +461,4 @@
             param[0] = "\"d3%s" % (rc_flag)
     
-            if (status_ts == 2):
-                param[0] = "%s ts%s" % (param[0],rc_flag)
-            
-            if (status_pr == 2):
-                param[0] = "%s pr%s" % (param[0],rc_flag)
-            
-            if (status_xy == 2):
-                param[0] = "%s xy%s" % (param[0],rc_flag)
-            
-            if (status_xz == 2):          
-                param[0] = "%s xz%s" % (param[0],rc_flag)
-            
-            if (status_yz == 2):    
-                param[0] = "%s yz%s" % (param[0],rc_flag)
-            
-            if (status_3d == 2):     
-                param[0] = "%s 3d%s" % (param[0],rc_flag)
-            
-            if (status_ma == 2):
-                param[0] = "%s ma%s" % (param[0],rc_flag)
-            
-            if (status_sp == 2):
-                param[0] = "%s sp%s" % (param[0],rc_flag)
-            
-            if (status_prt == 2):
-                param[0] = "%s prt%s" % (param[0],rc_flag)
-            
-            if (status_pts == 2):
-                param[0] = "%s pts%s" % (param[0],rc_flag)
-            
     
             if (drop_job == "Restart run (coupled atmosphere ocean)" or drop_job == "Initial run (coupled atmosphere ocean)"):
@@ -507,38 +466,8 @@
                    rc_flag = "o#"
                 else:
-                   rc_flag = "of"
+                   rc_flag = "or"
 
                 param[0] = "%s d3%s" % (param[0],rc_flag)
     
-                if (status_ts == 2):
-                    param[0] = "%s ts%s" % (param[0],rc_flag)
-                
-                if (status_pr == 2):                
-                    param[0] = "%s pr%s" % (param[0],rc_flag)
-                
-                if (status_xy == 2):
-                    param[0] = "%s xy%s" % (param[0],rc_flag)
-                
-                if (status_xz == 2):   
-                    param[0] = "%s xz%s" % (param[0],rc_flag)
-                
-                if (status_yz == 2):
-                    param[0] = "%s yz%s" % (param[0],rc_flag)
-                
-                if (status_3d == 2):
-                    param[0] = "%s 3d%s" % (param[0],rc_flag)
-                
-                if (status_ma == 2):
-                    param[0] = "%s ma%s" % (param[0],rc_flag)
-                
-                if (status_sp == 2):               
-                    param[0] = "%s sp%s" % (param[0],rc_flag)
-                
-                if (status_prt == 2):
-                    param[0] = "%s prt%s" % (param[0],rc_flag)
-                
-                if (status_pts == 2):
-                    param[0] = "%s pts%s" % (param[0],rc_flag)
-
             status_restarts = self.group_execution.findChild(QtGui.QCheckBox,"check_restarts").checkState()
 
@@ -563,8 +492,14 @@
     
             if (status_cycfill == 2):            
-                param[0]="%s cycfill" % (param[0])
+                param[0]="%s fill" % (param[0])
+            
+            status_svf = self.group_execution.findChild(QtGui.QCheckBox,"check_svf").checkState()
+    
+            if (status_svf == 2):            
+                param[0]="%s svf" % (param[0])
 
             param[0]="%s\"" % (param[0])
-    
+ 
+ 
             if ( fwt_str == "remove"):            
                 self.delete_commandline(id_str)
@@ -998,35 +933,5 @@
                     options_all = optionssplit[j] 
                     options_2 = optionssplit[j][:2] 
-                                      
-                    if (options_2 == "ts"):
-                        self.group_runcontrol.findChild(QtGui.QCheckBox,"check_ts").setChecked(True) 
-                    
-                    if (options_2 == "pr" and options_all[:3] is not "prt"):                  
-                        self.group_runcontrol.findChild(QtGui.QCheckBox,"check_pr").setChecked(True) 
-                    
-                    if (options_2 == "xy"):
-                        self.group_runcontrol.findChild(QtGui.QCheckBox,"check_xy").setChecked(True) 
-                    
-                    if (options_2 == "xz"):      
-                        self.group_runcontrol.findChild(QtGui.QCheckBox,"check_xz").setChecked(True) 
-                    
-                    if (options_2 == "yz"):     
-                        self.group_runcontrol.findChild(QtGui.QCheckBox,"check_yz").setChecked(True) 
-                    
-                    if (options_2 == "3d"):     
-                        self.group_runcontrol.findChild(QtGui.QCheckBox,"check_3d").setChecked(True) 
-                        
-                    if (options_2 == "ma"):             
-                        self.group_runcontrol.findChild(QtGui.QCheckBox,"check_ma").setChecked(True) 
-                    
-                    if (options_2 == "sp"):       
-                        self.group_runcontrol.findChild(QtGui.QCheckBox,"check_sp").setChecked(True) 
-                    
-                    if (options_all[:3] == "prt"):      
-                        self.group_runcontrol.findChild(QtGui.QCheckBox,"check_prt").setChecked(True) 
-                    
-                    if (options_all[:3] == "pts"):     
-                        self.group_runcontrol.findChild(QtGui.QCheckBox,"check_pts").setChecked(True) 
-                    
+                                              
                     if (options_2 == "d3"):      
                         if (options_all[:3][-1] == "#"):
@@ -1076,5 +981,4 @@
         if ( nojob == True ):
             self.group_execution.setEnabled(False) 
-            self.group_runcontrol.setEnabled(False) 
             self.groupBox.findChild(QtGui.QPushButton,"button_start").setEnabled(False) 
             self.menuBar.findChild(QtGui.QMenu,"menuStart").actions()[3].setEnabled(False) 
@@ -1085,5 +989,4 @@
         else:
             self.group_execution.setEnabled(True) 
-            self.group_runcontrol.setEnabled(True) 
             self.groupBox.findChild(QtGui.QPushButton,"button_start").setEnabled(True) 
             self.menuBar.findChild(QtGui.QMenu,"menuStart").actions()[3].setEnabled(True)
