Skip to content

Commit 4ebac68

Browse files
minor fixes on linux run
1 parent 900a7c2 commit 4ebac68

9 files changed

Lines changed: 14 additions & 13 deletions

File tree

dockers/dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FROM python:3.9
22

33
RUN pip install KratosMultiphysics-all numpy
44
WORKDIR "/model"
5+
RUN chmod 777 /model
56
ENTRYPOINT [ "python3", "MainKratos.py" ]
67

78
# docker build --tag="kratos-run:latest" -t kratos-run .

kratos.gid/apps/Common/xml/GenericSubModelPart.spd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<condition n="GenericModelParts" pn="Add SubModelPart" un="GenericSubmodelPart" ov="point,line,surface,volume" icon="generic" state="[ShowInMode Developer]">
2+
<condition n="GenericModelParts" pn="Add SubModelPart" un="GenericSubmodelPart" ov="point,line,surface,volume" icon="generic" >
33
<value n="WriteNodes" pn="Write nodes" v="True" values="True,False" state="disabled"/>
44
<value n="WriteElements" pn="Write elements" v="False" values="True,False"/>
55
<value n="WriteConditions" pn="Write conditions" v="True" values="True,False"/>

kratos.gid/apps/Common/xml/Results.spd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
</value>
2222
<value n="OutputDeltaTime" pn="Time between outputs (s)" v="1.0" help="Output will be printed in intervals of this time" state="[getStateFromXPathValue {string(../value[@n='OutputControlType']/@v)} time]"/>
2323
<value n="OutputDeltaStep" pn="Time steps between outputs" v="1" help="Output will be printed in intervals of this number of steps" state="[getStateFromXPathValue {string(../value[@n='OutputControlType']/@v)} step]"/>
24-
<value n="BodyOutput" pn="Body output" v="Yes" values="Yes,No" help="The interior of the volume is printed" state="[ShowInMode Developer]"/>
25-
<value n="NodeOutput" pn="Node output" v="No" values="Yes,No" help="The nodes are printed as a separate layer" state="[ShowInMode Developer]"/>
26-
<value n="SkinOutput" pn="Skin output" v="No" values="Yes,No" help="" state="[ShowInMode Developer]"/>
24+
<value n="BodyOutput" pn="Body output" v="Yes" values="Yes,No" help="The interior of the volume is printed" />
25+
<value n="NodeOutput" pn="Node output" v="No" values="Yes,No" help="The nodes are printed as a separate layer" />
26+
<value n="SkinOutput" pn="Skin output" v="No" values="Yes,No" help="" />
2727
<value n="GiDPostMode" pn="Result format" v="GiD_PostBinary" values="GiD_PostBinary,GiD_PostAscii,GiD_PostAsciiZipped" dict="GiD_PostBinary,Binary,GiD_PostAscii,Ascii,GiD_PostAsciiZipped,Ascii zipped" help="GiD result file format" />
2828
<value n="GiDWriteMeshFlag" pn="Write deformed mesh" v="WriteDeformed" values="WriteDeformed,WriteUndeformed" dict="WriteDeformed,Write deformed,WriteUndeformed, Write undeformed" help="Write the GiD deformed or undeformed mesh"/>
2929
<value n="GiDWriteConditionsFlag" pn="Write conditions" v="WriteConditions" values="WriteConditions,WriteElementsOnly,WriteConditionsOnly" dict="WriteConditions,Write conditions,WriteElementsOnly,Write elements only,WriteConditionsOnly,Write conditions only" help="Write the conditions or only element to the GiD result file"/>

kratos.gid/apps/Dam/xml/Results.spd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<value n="OutputDeltaTime_d" pn="Time between outputs (d)" v="1.0" help="Output will be printed in intervals of days" state="[getStateFromXPathValue {string(../value[@n='OutputControlType']/@v)} time_d]"/>
99
<value n="OutputDeltaTime_w" pn="Time between outputs (w)" v="1.0" help="Output will be printed in intervals of weeks" state="[getStateFromXPathValue {string(../value[@n='OutputControlType']/@v)} time_w]"/>
1010
<value n="StartOutputResults" pn="Start output results" un="DamStartOutputResults" v="0" type="double" help="Output will start at this time"/>
11-
<value n="BodyOutput" pn="Body output" v="Yes" values="Yes,No" help="The interior of the volume is printed" state="[ShowInMode Developer]"/>
12-
<value n="NodeOutput" pn="Node output" v="No" values="Yes,No" help="The nodes are printed as a separate layer" state="[ShowInMode Developer]"/>
13-
<value n="SkinOutput" pn="Skin output" v="No" values="Yes,No" help="" state="[ShowInMode Developer]"/>
11+
<value n="BodyOutput" pn="Body output" v="Yes" values="Yes,No" help="The interior of the volume is printed" />
12+
<value n="NodeOutput" pn="Node output" v="No" values="Yes,No" help="The nodes are printed as a separate layer" />
13+
<value n="SkinOutput" pn="Skin output" v="No" values="Yes,No" help="" />
1414
<container n="OnElement" pn="On element" un="ElementResults" state="[ActiveIfAnyPartState]" open_window="0">
1515
<dynamicnode command="spdAux::injectElementOutputs" args=""/>
1616
<dynamicnode command="spdAux::injectConstitutiveLawOutputs" args=""/>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<container n="InitialConditions" pn="Initial Conditions" un="FLNodalConditions" icon="air" state="[ShowInMode Developer]" open_window="0">
2+
<container n="InitialConditions" pn="Initial Conditions" un="FLNodalConditions" icon="air" open_window="0">
33
<dynamicnode command="spdAux::injectNodalConditions" args="App Fluid"/>
44
</container>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<container n="ManufacturedConditions" pn="Exact Conditions" state="[ShowInMode Developer]" un="FLDEMCoupling" icon="nodal" open_window="0">
2+
<container n="ManufacturedConditions" pn="Exact Conditions" un="FLDEMCoupling" icon="nodal" open_window="0">
33
<dynamicnode command="spdAux::injectNodalConditions" args="ImplementedInApplication FluidDEMApplication"/>
44
</container>

kratos.gid/apps/PfemFluid/xml/Results.spd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</value>
77
<value n="OutputDeltaTime" pn="Time between outputs (s)" v="0.01" help="Output will be printed in intervals of this time" state="[getStateFromXPathValue {string(../value[@n='OutputControlType']/@v)} time]" icon="data"/>
88
<value n="OutputDeltaStep" pn="Time steps between outputs" v="1" help="Output will be printed in intervals of this number of steps" state="[getStateFromXPathValue {string(../value[@n='OutputControlType']/@v)} step]" icon="data"/>
9-
<value n="BodyOutput" pn="Body output" v="Yes" values="Yes,No" help="The interior of the volume is printed" state="[ShowInMode Developer]" icon="data"/>
10-
<value n="NodeOutput" pn="Node output" v="Yes" values="Yes,No" help="The nodes are printed as a separate layer" state="[ShowInMode Developer]" icon="data"/>
9+
<value n="BodyOutput" pn="Body output" v="Yes" values="Yes,No" help="The interior of the volume is printed" icon="data"/>
10+
<value n="NodeOutput" pn="Node output" v="Yes" values="Yes,No" help="The nodes are printed as a separate layer" icon="data"/>
1111
<value n="SkinOutput" pn="Skin output" v="No" values="Yes,No" help="" state="hidden" icon="data"/>
1212
<container n="OnElement" pn="On element" un="ElementResults" icon="select" help="Activate the results you want to see in the elements" open_window="0">
1313
<!--<dynamicnode command="spdAux::injectElementOutputs" args=""/>-->

kratos.gid/scripts/Controllers/PreferencesWindow.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ proc Kratos::ManagePreferences { cmd name {value ""}} {
3939
set ret "fjgarate/kratos-run"
4040
}
4141
"python_path" {
42-
set ret [file join [Kratos::GetDefaultPythonPath] [Kratos::GetPythonExeName] ]
42+
set ret [Kratos::GetDefaultPythonPath]
4343
}
4444
default {
4545
set ret 0

kratos.gid/scripts/Launch.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ proc Kratos::GetPythonExeName { } {
4444

4545
proc Kratos::GetDefaultPythonPath { } {
4646
set py [Kratos::GetPythonExeName]
47-
return [exec $py -c "import sys; print(sys.exec_prefix)" 2>@1]
47+
return [exec $py -c "import sys; print(sys.executable)" 2>@1]
4848
}
4949

5050
proc Kratos::pythonVersion {{pythonExecutable "python"}} {

0 commit comments

Comments
 (0)