From 414b2b491f5e47eca34cb5a4457cce042bd48213 Mon Sep 17 00:00:00 2001 From: JKRT Date: Thu, 12 Nov 2026 13:43:27 +0100 Subject: [PATCH 1/2] Version 0.1.1 INTERFACE.md: --stack, and --stdin among the options the library refuses. Assisted-by: Claude Opus 5.5 --- Cargo.lock | 2 +- Cargo.toml | 2 +- interface/INTERFACE.md | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a9eba96..4a53096 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -188,7 +188,7 @@ dependencies = [ [[package]] name = "mocoal" -version = "0.1.0" +version = "0.1.1" dependencies = [ "metamodelica", "openmodelica_ast", diff --git a/Cargo.toml b/Cargo.toml index 687244c..9b7cc11 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mocoal" -version = "0.1.0" +version = "0.1.1" edition = "2024" authors = ["John Tinnerholm "] license = "LicenseRef-OSMC-PL-1.8 OR AGPL-3.0-only" diff --git a/interface/INTERFACE.md b/interface/INTERFACE.md index a856942..dac51af 100644 --- a/interface/INTERFACE.md +++ b/interface/INTERFACE.md @@ -46,7 +46,7 @@ for people. Its wording is not part of the interface: a caller tests the result ### mocoal_version -The version of the implementation (`"0.1.0"`). The text belongs to the library and is valid as +The version of the implementation (`"0.1.1"`). The text belongs to the library and is valid as long as the library is loaded. It is not the version of the interface (see [Open points](#open-points)). @@ -94,6 +94,7 @@ Releases a result of `mocoal_layout`. `NULL` is allowed. | `--no-rotate` | | off | Do not turn components whose connectors are all acausal. | | `--graphics NAME` | `move`, `keep`, `drop` | `move` | What happens to the shapes of the Diagram layer. | | `-L`, `--library DIR` | a directory | none | A directory with libraries, for the class lookup. May be repeated; searched in the order given. | +| `--stack MB` | an integer from 1 to 65536 | `256` | The stack of the layout in MB. A level of nesting in the model takes about 3 KB. | What the options do is described in [README.md](README.md). @@ -101,7 +102,7 @@ Rules: - Any other word gives `NULL` and a message: an unknown option, a missing value, an unknown value, a file name, and the options of the program `mocoal` that are not layout options - (`-o`, `-i`, `-n`, `-q`, `--svg`, `-h`, `--version`). + (`-o`, `--stdin`, `-i`, `-n`, `-q`, `--svg`, `-h`, `--version`). - No layout is made with a part of the options. An implementation that does not have an option or a value returns `NULL`; it does not ignore the word. - A text without classes comes back as it is. So `mocoal_layout("", NULL, "--graphics move")` From 2b4b0b88ac4737d59fc4dc498a8c5ab128be51f3 Mon Sep 17 00:00:00 2001 From: JKRT Date: Thu, 12 Nov 2026 13:44:16 +0100 Subject: [PATCH 2/2] README: no check details Assisted-by: Claude Opus 5.5 --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c6db413..069b202 100644 --- a/README.md +++ b/README.md @@ -58,9 +58,8 @@ speed sensor's feedback below. In OMEdit 1.27.1: ![Drive in OMEdit after mocoal](examples/omedit/Drive-layout.png) -Both pass OMEdit's check (Chain 6 equations, Drive 32). More in [examples/](examples/README.md): -Drive before and after, and six examples of the Modelica Standard Library, before and after, in -OMEdit. +More in [examples/](examples/README.md): Drive before and after, and six examples of the +Modelica Standard Library, before and after, in OMEdit. ## Build