Skip to content

add --ignoreUnitMismatch flag to allow connections for unit mismatches - #1683

Merged
arun3688 merged 3 commits into
OpenModelica:masterfrom
arun3688:skip-unit-check
Oct 22, 2026
Merged

arun3688 merged 3 commits into
OpenModelica:masterfrom
arun3688:skip-unit-check

Conversation

@arun3688

Copy link
Copy Markdown
Contributor

Purpose

The new flag --ignoreUnitMismatch (default false) turns the error into a warning naming both connectors and their units, and connects them with suppressUnitConversion=true, since the conversion factor between units of different dimensions is meaningless. Without the flag, the error now names the units and points to the flag.

@codecov

codecov Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 38.46154% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 28.43%. Comparing base (2ff96a1) to head (6afeade).

Files with missing lines Patch % Lines
src/OMSimulatorLib/System.cpp 33.33% 6 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1683      +/-   ##
==========================================
+ Coverage   28.35%   28.43%   +0.08%     
==========================================
  Files          72       72              
  Lines       13976    13981       +5     
  Branches     9020     9023       +3     
==========================================
+ Hits         3963     3976      +13     
+ Misses       8775     8771       -4     
+ Partials     1238     1234       -4     
Flag Coverage Δ
linux 28.43% <38.46%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@arun3688
arun3688 merged commit 3d78304 into OpenModelica:master Oct 22, 2026
6 checks passed
@arun3688
arun3688 deleted the skip-unit-check branch October 22, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant