Skip to content

Commit ddc934b

Browse files
Merge pull request #899 from KratosMultiphysics/available-apps
apps in launchers come from json
2 parents 9d2af06 + a0e4c03 commit ddc934b

9 files changed

Lines changed: 14 additions & 13 deletions

File tree

.github/workflows/tester.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3030
- uses: actions/checkout@v2
3131

32+
- name: Install bins
33+
run: |
34+
pip install --upgrade --force-reinstall --no-cache-dir KratosMultiphysics-all==9.2
35+
3236
# Copy problemtype to gid and copy exec
3337
- name: Move kratos where it should be
3438
run: |

kratos.gid/apps/DEMLauncher/app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
],
77
"start_script":"::DemLauncher::Init",
88
"requeriments":{
9-
"apps_exist":["DEM", "DEMPFEM", "FluidDEM", "CDEM"],
9+
"apps":["DEM", "DEMPFEM", "FluidDEM", "CDEM"],
1010
"minimum_gid_version":"15.1.3d"
1111
},
1212
"permissions": {

kratos.gid/apps/DEMLauncher/start.tcl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ namespace eval ::DemLauncher {
77
proc ::DemLauncher::Init { app } {
88
variable available_apps
99

10-
# TODO: Get apps from json
11-
set available_apps [list DEM DEMPFEM FluidDEM CDEM]
10+
set available_apps [dict get [$app getProperty requeriments] apps]
1211
# Allow to open the tree
1312
set ::spdAux::TreeVisibility 0
1413

kratos.gid/apps/FluidLauncher/app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
],
77
"start_script":"::FluidLauncher::Init",
88
"requeriments":{
9-
"apps_exist":["Fluid","EmbeddedFluid", "PotentialFluid", "Buoyancy", "ConjugateHeatTransfer", "FluidDEM"],
9+
"apps":["Fluid","EmbeddedFluid", "PotentialFluid", "Buoyancy", "ConjugateHeatTransfer", "FluidDEM"],
1010
"minimum_gid_version":"15.1.3d"
1111
},
1212
"permissions": {

kratos.gid/apps/FluidLauncher/start.tcl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ namespace eval ::FluidLauncher {
77
proc ::FluidLauncher::Init { app } {
88
variable available_apps
99

10-
# TODO: Get apps from json
11-
set available_apps [list Fluid EmbeddedFluid PotentialFluid Buoyancy ConjugateHeatTransfer FluidDEM FreeSurface]
12-
10+
set available_apps [dict get [$app getProperty requeriments] apps]
11+
1312
::FluidLauncher::FluidAppSelectorWindow
1413
}
1514

kratos.gid/apps/PfemLauncher/app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
],
77
"start_script":"::PfemLauncher::Init",
88
"requeriments":{
9-
"apps_exist":["PfemFluid", "DEMPFEM", "PfemThermic"],
9+
"apps":["PfemFluid", "DEMPFEM", "PfemThermic"],
1010
"minimum_gid_version":"15.1.3d"
1111
},
1212
"permissions": {

kratos.gid/apps/PfemLauncher/start.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace eval ::PfemLauncher {
77
proc ::PfemLauncher::Init { app } {
88
variable available_apps
99

10-
set available_apps [list PfemFluid DEMPFEM PfemThermic]
10+
set available_apps [dict get [$app getProperty requeriments] apps]
1111
# Allow to open the tree
1212
set ::spdAux::TreeVisibility 0
1313

kratos.gid/apps/ThermicLauncher/app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
],
77
"start_script": "::ThermicLauncher::Init",
88
"requeriments": {
9-
"apps_exist": [
9+
"apps": [
1010
"ConvectionDiffusion",
1111
"Buoyancy",
1212
"ConjugateHeatTransfer"

kratos.gid/apps/ThermicLauncher/start.tcl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ namespace eval ::ThermicLauncher {
66

77
proc ::ThermicLauncher::Init { app } {
88
variable available_apps
9-
10-
# TODO: Get apps from json
11-
set available_apps [list ConvectionDiffusion Buoyancy ConjugateHeatTransfer]
129

10+
set available_apps [dict get [$app getProperty requeriments] apps]
11+
1312
::ThermicLauncher::AppSelectorWindow
1413
}
1514

0 commit comments

Comments
 (0)