Skip to content

Commit 5cb85c3

Browse files
add production flag
1 parent 99d3635 commit 5cb85c3

3 files changed

Lines changed: 31 additions & 27 deletions

File tree

kratos.gid/kratos.spd

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,35 @@
77
<!-- Fill this fields to automatically active an App without the init window -->
88
<hiddenfield n="activeapp" active="0" v="" state="disabled"/>
99
<value n="nDim" pn="Dimension" un="nDim" v="undefined" state="disabled" values="undefined,2D,2Da,3D" dict="undefined,Undefined,2D,2D,2Da,2D axisymmetric,3D,3D"/>
10-
<appLink n="ThermicLauncher" public="1" pn="Thermic" active="0" appid="ThermicLauncher" prefix="ThermicLauncher"/>
11-
<appLink n="ConvectionDiffusion" public="0" pn="Convection-diffusion" active="0" appid="ConvectionDiffusion" prefix="CNVDFF"/>
12-
<appLink n="Structural" public="1" pn="Structural" active="0" appid="Structural" prefix="ST"/>
13-
<appLink n="FluidLauncher" public="1" pn="Fluid" active="0" appid="FluidLauncher" prefix="FLL"/>
14-
<appLink n="Fluid" public="0" pn="Fluid" active="0" appid="Fluid" prefix="FL"/>
15-
<appLink n="CompressibleFluid" public="0" pn="Compressible Fluid" active="0" appid="CompressibleFluid" prefix="CF"/>
16-
<appLink n="FreeSurface" public="0" pn="FreeSurface" active="0" appid="FreeSurface" prefix="FS"/>
17-
<appLink n="EmbeddedFluid" public="0" pn="Embedded fluid" active="0" appid="EmbeddedFluid" prefix="EMBFL"/>
10+
<appLink n="ThermicLauncher" public="1" pn="Thermic" active="0" appid="ThermicLauncher" prefix="ThermicLauncher" production="1"/>
11+
<appLink n="ConvectionDiffusion" public="0" pn="Convection-diffusion" active="0" appid="ConvectionDiffusion" prefix="CNVDFF" production="1"/>
12+
<appLink n="Structural" public="1" pn="Structural" active="0" appid="Structural" prefix="ST" production="1"/>
13+
<appLink n="FluidLauncher" public="1" pn="Fluid" active="0" appid="FluidLauncher" prefix="FLL" production="1"/>
14+
<appLink n="Fluid" public="0" pn="Fluid" active="0" appid="Fluid" prefix="FL" production="1"/>
15+
<appLink n="CompressibleFluid" public="0" pn="Compressible Fluid" active="0" appid="CompressibleFluid" prefix="CF" production="1"/>
16+
<appLink n="FreeSurface" public="0" pn="FreeSurface" active="0" appid="FreeSurface" prefix="FS" />
17+
<appLink n="EmbeddedFluid" public="0" pn="Embedded fluid" active="0" appid="EmbeddedFluid" prefix="EMBFL" production="1"/>
1818
<appLink n="PotentialFluid" public="0" pn="Potential fluid" active="0" appid="PotentialFluid" prefix="PTFL"/>
19-
<appLink n="Buoyancy" public="0" pn="Buoyancy" active="0" appid="Buoyancy" prefix="Buoyancy_"/>
20-
<appLink n="ConjugateHeatTransfer" public="0" pn="Conjugate heat transfer" active="0" appid="ConjugateHeatTransfer" prefix="CHT"/>
21-
<appLink n="FSI" public="1" pn="FSI" active="0" appid="FSI" prefix="FSI"/>
22-
<appLink n="Dam" public="1" pn="Dam" active="0" appid="Dam" prefix="Dam"/>
23-
<appLink n="PfemLauncher" public="1" pn="Pfem" active="0" appid="PfemLauncher" prefix="PFEMLauncher_"/>
19+
<appLink n="Buoyancy" public="0" pn="Buoyancy" active="0" appid="Buoyancy" prefix="Buoyancy_" production="1"/>
20+
<appLink n="ConjugateHeatTransfer" public="0" pn="Conjugate heat transfer" active="0" appid="ConjugateHeatTransfer" prefix="CHT" production="1"/>
21+
<appLink n="FSI" public="1" pn="FSI" active="0" appid="FSI" prefix="FSI" production="1"/>
22+
<appLink n="Dam" public="1" pn="Dam" active="0" appid="Dam" prefix="Dam" production="1"/>
23+
<appLink n="PfemLauncher" public="1" pn="Pfem" active="0" appid="PfemLauncher" prefix="PFEMLauncher_" />
2424
<appLink n="PfemFluid" public="0" pn="Pfem Fluid" active="0" appid="PfemFluid" prefix="PFEMFLUID_"/>
2525
<appLink n="PfemThermic" public="0" pn="Pfem Thermic" active="0" appid="PfemThermic" prefix="PFEMTHERMIC_"/>
2626
<appLink n="PfemMelting" public="0" pn="Pfem Melting" active="0" appid="PfemMelting" prefix="PFEMMELTING_"/>
27-
<appLink n="StenosisWizard" public="1" pn="Stenosis Wizard" active="0" appid="StenosisWizard" prefix="StenosisWizard" is_tool="1"/>
28-
<appLink n="Stent" public="1" pn="Stent" active="0" appid="Stent" prefix="Stent" is_tool="1"/>
29-
<appLink n="DEMLauncher" public="1" pn="DEM" active="0" appid="DEMLauncher" prefix="DEMLauncher"/>
30-
<appLink n="DEM" public="0" pn="DEM" active="0" appid="DEM" prefix="DEM"/>
27+
<appLink n="StenosisWizard" public="1" pn="Stenosis Wizard" active="0" appid="StenosisWizard" prefix="StenosisWizard" is_tool="1" production="1"/>
28+
<appLink n="Stent" public="1" pn="Stent" active="0" appid="Stent" prefix="Stent" is_tool="1" production="1"/>
29+
<appLink n="DEMLauncher" public="1" pn="DEM" active="0" appid="DEMLauncher" prefix="DEMLauncher" production="1"/>
30+
<appLink n="DEM" public="0" pn="DEM" active="0" appid="DEM" prefix="DEM" production="1"/>
3131
<appLink n="FluidDEM" public="0" pn="Fluid-DEM" active="0" appid="FluidDEM" prefix="FluidDEM"/>
32-
<appLink n="MPM" public="1" pn="MPM" active="0" appid="MPM" prefix="MPM"/>
32+
<appLink n="MPM" public="1" pn="MPM" active="0" appid="MPM" prefix="MPM" production="1"/>
3333
<appLink n="DEMPFEM" public="0" pn="DEM+PFEM" active="0" appid="DEMPFEM" prefix="DEMPFEM"/>
34-
<appLink n="CDEM" public="0" pn="Cohesive DEM" active="0" appid="CDEM" prefix="CDEM"/>
35-
<appLink n="ShallowWater" public="1" pn="Shallow water" active="0" appid="ShallowWater" prefix="SW"/>
36-
<appLink n="MdpaGenerator" public="1" pn="Mdpa Generator" active="0" appid="MdpaGenerator" prefix="MDPAGen_" is_tool="1"/>
37-
<appLink n="Examples" public="1" pn="Examples" active="0" appid="Examples" prefix="EXA_" is_tool="1"/>
38-
<appLink n="GeoMechanics" public="1" pn="GeoMechanics" active="0" appid="GeoMechanics" prefix="GEOM_"/>
34+
<appLink n="CDEM" public="0" pn="Cohesive DEM" active="0" appid="CDEM" prefix="CDEM" production="1"/>
35+
<appLink n="ShallowWater" public="1" pn="Shallow water" active="0" appid="ShallowWater" prefix="SW" production="1"/>
36+
<appLink n="MdpaGenerator" public="1" pn="Mdpa Generator" active="0" appid="MdpaGenerator" prefix="MDPAGen_" is_tool="1" production="1"/>
37+
<appLink n="Examples" public="1" pn="Examples" active="0" appid="Examples" prefix="EXA_" is_tool="1" production="1"/>
38+
<appLink n="GeoMechanics" public="1" pn="GeoMechanics" active="0" appid="GeoMechanics" prefix="GEOM_" />
3939
<blockdata n="units" pn="Units" icon="units" open_window="0">
4040
<value n='units_mesh' pn='Mesh units' unit_mesh_definition="1"/>
4141
<value n='units_system' pn='Units system' units_system_definition="1">

kratos.gid/scripts/Utils.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ proc Kratos::LoadProblemtypeLibraries {} {
105105

106106
gid_groups_conds::SetProgramName $kratos_private(Name)
107107
gid_groups_conds::SetLibDir [file join $kratos_private(Path) exec]
108-
set spdfile [file join $kratos_private(Path) kratos_default.spd]
108+
set spdfile [file join $kratos_private(Path) kratos.spd]
109109
if {[llength [info args {gid_groups_conds::begin_problemtype}]] eq 4} {
110110
gid_groups_conds::begin_problemtype $spdfile [Kratos::GiveKratosDefaultsFile] ""
111111
} {

tools/prepare-release-files.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# read the file kratos_default.spd, and parse it as xml
1+
# read the file kratos.spd, and parse it as xml
22
# then extract the version number
33

44
import xml.etree.ElementTree as ET
@@ -12,7 +12,7 @@ def get_version_number(file_name):
1212

1313
if __name__ == "__main__":
1414

15-
file_name = "../kratos.gid/kratos_default.spd"
15+
file_name = "../kratos.gid/kratos.spd"
1616
version = get_version_number(file_name)
1717
print(version)
1818

@@ -24,7 +24,11 @@ def get_version_number(file_name):
2424

2525
app_list = ['Common', 'Examples']
2626
for app in applications:
27-
app_list.append(app.attrib['n'])
27+
# check if the app has the attribute 'production=1'
28+
if 'production' in app.attrib and app.attrib['production'] == '1':
29+
# add the app to the list
30+
if 'n' in app.attrib:
31+
app_list.append(app.attrib['n'])
2832

2933
print(app_list)
3034
# if there is a folder in the folder apps whose name is not in the list, delete it

0 commit comments

Comments
 (0)