Skip to content

Commit

Permalink
Added parameter for master file name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dag Brück committed Jul 3, 2024
1 parent 5b873d1 commit f3db35b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/MasterParameter/MasterParameter/Test.mo
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
within MasterParameter;
model Test "Use package parameter"
parameter MasterParameter.ParSet par=InitializeParameters("masterfile.txt")
parameter String master="masterfile.txt" "Name of master file";
parameter MasterParameter.ParSet par=InitializeParameters(master)
annotation (Evaluate=false);
extends Modelica.Mechanics.Rotational.Examples.CoupledClutches(
J1(J=par.J[1]),
Expand Down
1 change: 1 addition & 0 deletions examples/MasterParameter/masterfile2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
parfile2.txt
4 changes: 4 additions & 0 deletions examples/MasterParameter/parfile2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
1.4
1.5
1.1
1.2

0 comments on commit f3db35b

Please sign in to comment.