Skip to content

Unify reduced lung test mesh construction - #2237

Merged
maxiludwig merged 1 commit into
4C-multiphysics:mainfrom
maxiludwig:reduced-lung-tests-no-red-airways
Aug 31, 2026
Merged

Unify reduced lung test mesh construction#2237
maxiludwig merged 1 commit into
4C-multiphysics:mainfrom
maxiludwig:reduced-lung-tests-no-red-airways

Conversation

@maxiludwig

Copy link
Copy Markdown
Contributor

Description and Context

The junction and boundary condition tests built their meshes from Discret::Elements::RedAirway, which they only used as a generic two-node line element.
They now share the mesh helpers of 4C_reduced_lung_helpers_test.cpp, which move into the shared test utils and build via build_discretization_from_nodes_and_elements like the production code does.
This removes an undeclared dependency of the reduced lung tests on red_airways, along with three near-duplicate mesh helpers.

Disclosure of AI assistance

The changes in this PR were made by Claude Opus 5.

The junction and boundary condition tests built their meshes from
RedAirway elements, which they only used as generic line2 elements. They
now share the mesh helpers of the helpers test, which build through the
production discretization builder instead.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 31, 2026 07:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Comment thread src/reduced_lung/tests/4C_reduced_lung_test_utils_test.hpp
@maxiludwig
maxiludwig merged commit 512b1f4 into 4C-multiphysics:main Aug 31, 2026
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants