mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
adists run
This commit is contained in:
1 parent
0b5357d12a
commit
1ba971af24
2 files changed
+19
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user