Skip to content

refactor: split FieldSpecificationBase into two classes#4011

Draft
kdrienCG wants to merge 56 commits intoGEOS-DEV:developfrom
kdrienCG:feature/kdrienCG/refactoFieldSpecificationBase
Draft

refactor: split FieldSpecificationBase into two classes#4011
kdrienCG wants to merge 56 commits intoGEOS-DEV:developfrom
kdrienCG:feature/kdrienCG/refactoFieldSpecificationBase

Conversation

@kdrienCG
Copy link
Copy Markdown

@kdrienCG kdrienCG commented Apr 1, 2026

This PR aims to refactor the FieldSpecificationBase class into two separate class.
FieldSpecification for the data.
FieldSpecificationImpl for the "behavior" (with methods like apply, computeRhsContribution, etc.).

This will separate concerns and make the code easier to understand when encountering field specifications.


The following architecture is proposed:

image

kdrienCG added 30 commits March 25, 2026 15:40
kdrienCG added 26 commits March 25, 2026 17:29
ProppantTransport.hpp and PhaseFieldDamageFEM.hpp both had the "class FieldSpecification;" line that would cause an error with the temporary alias in FieldSpecification.hpp. That's why they are in this commit.
@kdrienCG kdrienCG self-assigned this Apr 1, 2026
@kdrienCG kdrienCG added type: cleanup / refactor Non-functional change (NFC) type: new A new issue has been created and requires attention labels Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: cleanup / refactor Non-functional change (NFC) type: new A new issue has been created and requires attention

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant