Repository navigation
Use Ferrite.task_local_copy for per-task values copies - #68
Merged
Merged
Conversation
Ferrite master deprecates copy(::CellValues) in favour of task_local_copy. Registered Ferrite 1.7.0 has no task_local_copy, so fall back to copy there. Agent-Harness: Claude Code 2.1.318 Agent-Model: claude-sonnet-5-5 Agent-Session: 43e03fde-3384-4386-bae9-03e81f19ba7c Agent-Review: unreviewed Co-authored-by: Claude Code <agent@noreply.juliahub.com>
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.
_fresh_valuescopies eachCellValuesandFacetValuesper task withcopy. Ferrite master deprecatescopyon these types in favour ofFerrite.task_local_copy(Ferrite-FEM/Ferrite.jl#1070), so every_fresh_valuescall warns under Ferrite master.This PR resolves the copy function once, in a module-level const. It uses
Ferrite.task_local_copywhenisdefined(Ferrite, :task_local_copy)and falls back tocopyotherwise. Registered Ferrite 1.7.0, the current lower bound, has notask_local_copy, so the fallback is needed there. Nothing else changes.Tests:
GROUP=Corepasses on Ferrite 1.7.0.test/Frontend/operators.jlandtest/Frontend/remake_p.jlpass on Ferrite 1.7.0 and on Ferrite master (a local checkout of the Ferrite #1496 head, which contains master). Under master with--depwarn=yesthere is no deprecation warning.🤖 Posted by an AI agent · harness: Claude Code 2.1.318 · model: claude-sonnet-5-5
Review: unreviewed
Session: 43e03fde-3384-4386-bae9-03e81f19ba7c