Skip to content

Commit 74a2664

Browse files
committed
Update documentation for PDEModelica
1 parent f1be3e2 commit 74a2664

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/UsersGuide/source/pdemodelica.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ PDEModelica1
33

44
PDEModelica1 is nonstandardised experimental Modelica language extension for 1-dimensional partial differential extensions (PDE).
55

6-
It is enabled using compiler flag ``--grammar=PDEModelica``. Compiler flags may be set e.g. in OMEdit (Tools->Options->Simulation->OMC Flags) or in the OpenModelica script using command. Note that PDEModelica does now work yet with the current frontend so you need to set ``-d=newInst`` in Tools->Options->Simulation->OMC Flags or check "Enable old frontend for code generation".
6+
It is enabled using compiler flag ``--grammar=PDEModelica``. Compiler flags may be set e.g. in OMEdit (globally in Tools->Options->Simulation->Translation Flags or in Simulation Setup->Translation Flags for specific models) or in an OpenModelica script using ``setCommandLineOptions``. Note that PDEModelica does now work yet with the current frontend so you need to also use the flag ``-d=-newInst`` or check "Enable old frontend for code generation" in OMEdit under Translation Flags.
77

88
.. omc-mos ::
99
setCommandLineOptions("--grammar=PDEModelica -d=-newInst")
@@ -15,7 +15,7 @@ PDEModelica1 language elements
1515
Let us introduce new PDEModelica1 language elements by an advection equation example model:
1616

1717

18-
.. omc-loadstring ::
18+
.. code-block:: modelica
1919
2020
model Advection "advection equation"
2121
parameter Real pi = Modelica.Constants.pi;
@@ -72,4 +72,4 @@ During translation field variables are replaced with arrays. These arrays may be
7272

7373

7474

75-
.. omc-reset ::
75+
.. omc-reset ::

0 commit comments

Comments
 (0)