Repository navigation
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2187 +/- ##
==========================================
- Coverage 77.45% 77.44% -0.01%
==========================================
Files 470 470
Lines 57184 57188 +4
Branches 9195 9195
==========================================
Hits 44292 44292
- Misses 9823 9827 +4
Partials 3069 3069 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ssun30
force-pushed
the
matlab-cxx17-flag
branch
from
October 8, 2026 00:10
01d2af9 to
8834f10
Compare
ssun30
marked this pull request as ready for review
October 8, 2026 01:23
ssun30
force-pushed
the
matlab-cxx17-flag
branch
from
October 8, 2026 01:37
8834f10 to
9fc1da4
Compare
ssun30
force-pushed
the
matlab-cxx17-flag
branch
from
October 22, 2026 05:39
9fc1da4 to
14c3dc6
Compare
Member
|
Hi @ssun30. What's the status of this PR -- is it ready for review? Can you rebase and resolve the merge conflicts? |
With MATLAB R2026b, the clibgen build command on macOS no longer includes a -std flag. With Xcode 15, clang then defaults to C++98 and fails to compile the MATLAB Data API headers, breaking the "MATLAB latest on macos-14" CI job. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Avoids issues with percent signs and backslashes in error messages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix MATLAB methods that called renamed or incorrect CLib functions (Domain.domainType, ReactorBase.U, ThermoPhase.chemPotentials and electrochemPotentials, Mixture.nAtoms), and the Mixture mole getters, which passed one-based indices. ctTestFlowReactor2 now fails if no error is raised and also checks mixing reactor types. ctTestPureFluid tests below the triple point using minTemp. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
R2024b is now the oldest release supported by the MATLAB toolbox. Test it on every OS image instead of R2024a, which removes the combinations excluded for R2024a (Cantera#2035, Cantera#2152) and the separate windows-2022 job with its micromamba dependencies. On windows-2025, R2024b needs the Visual C++ 2022 build tools, which are installed separately. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In out-of-process mode, Cantera error messages can be lost between calls, which makes tests that check error text fail intermittently. Tests now load Cantera in-process by default; CANTERA_MATLAB_TEST_EXECUTION_MODE selects 'outofprocess' instead. On Linux, MATLAB cannot load the library built with system dependencies in-process (the libcurl bundled with MATLAB lacks symbols required by the system HDF5), so the 'matlab' and coverage jobs keep running the tests out-of-process there for now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ssun30
force-pushed
the
matlab-cxx17-flag
branch
from
November 23, 2026 20:09
14c3dc6 to
6f2e50e
Compare
Contributor
Author
Thanks @speth . Yes, this is ready for review. I rebased it onto the current |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes proposed in this pull request
Fixes the MATLAB CI jobs that started failing with MATLAB R2026b, moves CI to R2024b as the oldest supported release, and fixes several MATLAB methods that called renamed CLib functions or passed the wrong indices.
Interface build
-std=c++17on macOS and Linux. With R2026b, the clibgen build command on macOS no longer includes a-stdflag, so Xcode 15's clang falls back to C++98 and fails on the MATLAB Data API headers. This broke "MATLAB latest on macos-14".Unit tests
<no Cantera error>(seen with R2026b on macOS and Linux). Cantera stores error messages per thread, and the out-of-process helper does not appear to run both calls on the same thread.matlaband Coverage jobs still run out-of-process. MATLAB cannot load the library built with system dependencies in-process there: thelibcurlbundled with MATLAB lacks symbols (CURL_OPENSSL_4) required by the system HDF5. In-process testing for Linux is planned to be resolved in Matlab auto configure #2177.CI matrix
MATLAB interface fixes
erroras a format argument, so messages containing%or\are shown correctly.AI Statement (required)
Checklist
scons build&scons test) and unit tests address code coverage