mirror of https://gitlab.com/pamhyr/pamhyr2
adists run
parent
0b5357d12a
commit
1ba971af24
|
|
@ -120,6 +120,7 @@ define_model_action = [
|
|||
"action_menu_results_last", "action_open_results_from_file",
|
||||
"action_menu_boundary_conditions_sediment",
|
||||
"action_menu_rep_additional_lines", "action_menu_output_kp",
|
||||
"action_menu_run_adists",
|
||||
]
|
||||
|
||||
action = (
|
||||
|
|
@ -233,6 +234,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
|||
"""
|
||||
actions = {
|
||||
# Menu action
|
||||
"action_menu_run_adists":self.run_solver_adists,
|
||||
"action_menu_output_kp": self.open_output_kp_adists,
|
||||
"action_menu_config": self.open_configure,
|
||||
"action_menu_new": self.open_new_study,
|
||||
|
|
@ -1197,6 +1199,13 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
|||
if run.exec():
|
||||
self.run_solver(run.solver)
|
||||
|
||||
def run_solver_adists(self):
|
||||
if self._study is None:
|
||||
return
|
||||
|
||||
solver = next(filter(lambda x: x._type == "adistslc", self.conf.solvers))
|
||||
self.run_solver(solver)
|
||||
|
||||
def run_solver(self, solver):
|
||||
if self._study is None:
|
||||
return
|
||||
|
|
|
|||
|
|
@ -139,6 +139,7 @@
|
|||
</property>
|
||||
<addaction name="action_menu_numerical_parameter"/>
|
||||
<addaction name="action_menu_run_solver"/>
|
||||
<addaction name="action_menu_run_adists"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menu_Hydraulics">
|
||||
<property name="locale">
|
||||
|
|
@ -745,6 +746,15 @@
|
|||
<string>Output KP</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="action_menu_run_adists">
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>ressources/run.png</normaloff>ressources/run.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Run AdisTS</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections>
|
||||
|
|
|
|||
Loading…
Reference in New Issue