Skip to content

Commit 0fd4096

Browse files
committed
Do not use + for OM flags
1 parent 008b951 commit 0fd4096

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

UsersGuide/source/debugger.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The compilation time overhead from having this tracing on is less than
2525
1%, however, in addition to that, some time is needed for the system to
2626
write the xml file containing the transformation tracing information.
2727

28-
Enable +d=infoXmlOperations in Tools->Options->Simulation (see section
28+
Enable -d=infoXmlOperations in Tools->Options->Simulation (see section
2929
:ref:`omedit-settings-simulation`) OR alternatively click on the checkbox *Generate operations in
3030
the info xml* in Tools->Options->Debugger (see section :ref:`omedit-settings-debugger`) which
3131
performs the same thing.
@@ -64,7 +64,7 @@ are defined by the equation, or the equation is dependent on), and
6464
similar for variables. The equations and variables form a bipartite
6565
graph that you can walk.
6666

67-
If the +d=infoXmlOperations was used or you clicked the “generate
67+
If the -d=infoXmlOperations was used or you clicked the “generate
6868
operations” button, the operations performed on the equations and
6969
variables can be viewed. In the example package, there are not a lot of
7070
operations because the models are small.

UsersGuide/source/introduction.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ experimental version without load balancing. The following command, not
729729
yet available from the OpenModelica GUI, will run a parallel simulation
730730
on a model:
731731

732-
>>> omc +d=openmp model.mo
732+
>>> omc -d=openmp model.mo
733733

734734
Loading Specific Library Version
735735
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1016,11 +1016,11 @@ parameters**
10161016
| ""
10171017
10181018
In order to obtain more information from the compiler one can use the
1019-
command line options **+showErrorMessages +d=failtrace** when running
1019+
command line options **--showErrorMessages -d=failtrace** when running
10201020
the compiler:
10211021

1022-
C:\\dev> C:\\OpenModelica1.9.2 \\bin\\omc +showErrorMessages
1023-
+d=failtrace script.mos
1022+
C:\\dev> C:\\OpenModelica1.9.2 \\bin\\omc --showErrorMessages
1023+
-d=failtrace script.mos
10241024

10251025
.. |omlogo| image:: logo.*
10261026
:alt: OpenModelica logotype

UsersGuide/source/mdtdebugger.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ like this:
7878
7979
.. omc-mos ::
8080
81-
setCommandLineOptions({"+d=rml,noevalfunc","+g=MetaModelica"})
81+
setCommandLineOptions({"-d=rml,noevalfunc","-g=MetaModelica"})
8282
setCFlags(getCFlags() + " -g")
8383
HelloWorld(120.0)
8484

UsersGuide/source/optimization.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ command line terminals similar to the options described below:
7373

7474
.. omc-mos ::
7575
76-
setCommandLineOptions("+g=Optimica");
76+
setCommandLineOptions("-g=Optimica");
7777
7878
.. omc-loadstring ::
7979
:caption: BatchReactor.mo
@@ -182,7 +182,7 @@ also be exported to an XML code using the following steps from the
182182
terminal window:
183183

184184
- Go to the path where your model file found
185-
- Run command omc +g=Optimica +simCodeTarget=XML Model.mo
185+
- Run command omc -g=Optimica --simCodeTarget=XML Model.mo
186186

187187
An example
188188
~~~~~~~~~~
@@ -254,7 +254,7 @@ CasADi and solves an optimization problem in windows PowerShell:
254254

255255
a. Go to omc path from working directory and run the following command
256256

257-
E.g. ..\\..\\..\\bin\\omc +s +g=Optimica +simCodeTarget=XML
257+
E.g. ..\\..\\..\\bin\\omc +s -g=Optimica --simCodeTarget=XML
258258
BatchReactor.mo
259259

260260
3. Run defaultStart.py python script from OpenModelica optimization

UsersGuide/source/parametersensitivity.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Sundials/IDA solver.
99
considerably improved, since this a rather new feature and will
1010
continuous improved.*
1111

12-
*Note: A OpenModelica version newer than openmodelica_1.10.0 is needed.*
12+
*Note: OpenModelica version 1.10 or newer is required.*
1313

1414

1515
Background
@@ -51,7 +51,7 @@ OpenModelica on an example. This module is enabled by the following
5151
OpenModelica compiler flag:
5252

5353
.. omc-mos ::
54-
setCommandLineOptions("+calculateSensitivities");
54+
setCommandLineOptions("--calculateSensitivities");
5555
5656
5757
.. omc-loadstring ::
@@ -98,3 +98,4 @@ sensitivities w.r.t. **every state**.
9898
x
9999
y
100100
101+
.. omc-reset ::

0 commit comments

Comments
 (0)