Skip to content

Conversation

@timspainNERSC
Copy link
Collaborator

Pull Request Title

Fixes #984


Change Description

Broadens the valid versions of Eigen to include 5.x.y. The search range syntax is great for this, but only supported in Eigen 3.4.1, and I have 3.4.0, so this also needs to be supported.

@timspainNERSC timspainNERSC added this to the 3 Stand-alone model milestone Nov 11, 2025
@timspainNERSC timspainNERSC self-assigned this Nov 11, 2025
@timspainNERSC timspainNERSC added the bug Something isn't working label Nov 11, 2025
@timspainNERSC timspainNERSC moved this from Todo to Review required in neXtSIM_DG overview Nov 11, 2025
@timspainNERSC timspainNERSC force-pushed the issue984_maceigenversion branch from 6dc657a to d288d54 Compare November 11, 2025 09:34
TomMelt added a commit that referenced this pull request Nov 11, 2025
Fix failing mac build for now.

When #985 is ready, we can use that instead.
TomMelt pushed a commit that referenced this pull request Jan 5, 2026
# Fix usage of Eigen's min and max
Fixes #985

### Task List
- [x] Defined the tests that specify a complete and functioning change
(*It may help to create a [design specification & test
specification](../../../wiki/Specification-Template)*)
- [x] Implemented the source code change that satisfies the tests
- [x] Documented the feature by providing worked example
- [x] Updated the README or other documentation
- [x] Completed the pre-Request checklist below

---
# Change Description

The code stopped compiling when Eigen went from version 3.4.0 to 3.4.1.
For some reason, which I don't fully understand, then we can't use
``.array().max()`` or ``.array().min()`` with LocalEdgeVector objects,
but using ``cwiseMax().array()`` and ``cwiseMin().array()`` is fine.

---
# Test Description

The model compiles, and all tests run. I've also run longer test runs,
and they seem fine.

---
# Documentation Impact

None

---
# Other Details

N/A

---
### Pre-Request Checklist

- [x] The requirements of this pull request are fully captured in an
issue or design specification and are linked and summarised in the
description of this PR
- [x] No new warnings are generated
- [x] The documentation has been updated (or an issue has been created
to track the corresponding change)
- [x] Methods and Tests are commented such that they can be understood
without having to obtain additional context
- [x] This PR/Issue is labelled as a bug/feature/enhancement/breaking
change
- [x] This change conforms to the conventions described in the README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Review required

Development

Successfully merging this pull request may close these issues.

Version of Eigen in the Mac CI

2 participants