Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce code duplication and add AD versions of simple MOOSE objects #21009

Closed
cticenhour opened this issue May 11, 2022 · 0 comments · Fixed by #21010
Closed

Reduce code duplication and add AD versions of simple MOOSE objects #21009

cticenhour opened this issue May 11, 2022 · 0 comments · Fixed by #21010
Assignees
Labels
C: Framework P: normal A defect affecting operation with a low possibility of significantly affects. T: task An enhancement to the software.

Comments

@cticenhour
Copy link
Member

Reason

Some MOOSE objects within the Reaction family (Reaction itself as well as CoefReaction, specifically), do not have AD versions. As these objects serve as building blocks for larger and more complicated objects, it makes sense to have a complete set (meaning non-AD and AD) for users to use. This can be accomplished using templates.

Further, CoupledForce and ADCoupledForce do not need to exist as separate files, and should be combined to reduce code duplication.

Design

Reaction --> ReactionTempl with Reaction and ADReaction (new)
CoefReaction --> CoefReactionTempl with CoefReaction and ADCoefReaction (new)
ADCoupledForce + CoupledForce --> CoupledForceTempl with both versions as before.

Impact

Adds useful objects (more software completeness) and reduce code duplication.

@cticenhour cticenhour added C: Framework T: task An enhancement to the software. P: normal A defect affecting operation with a low possibility of significantly affects. labels May 11, 2022
@cticenhour cticenhour self-assigned this May 11, 2022
cticenhour added a commit to cticenhour/moose that referenced this issue May 11, 2022
…daholab#21009)

Also restore ADCoupledForce error check test for using the same coupled and object variables
cticenhour added a commit to cticenhour/moose that referenced this issue May 11, 2022
cticenhour added a commit to cticenhour/moose that referenced this issue May 11, 2022
cticenhour added a commit to cticenhour/moose that referenced this issue May 11, 2022
cticenhour added a commit to cticenhour/moose that referenced this issue May 11, 2022
cticenhour added a commit to cticenhour/moose that referenced this issue May 12, 2022
…daholab#21009)

Also restore ADCoupledForce error check test for using the same coupled and object variables
cticenhour added a commit to cticenhour/moose that referenced this issue May 12, 2022
cticenhour added a commit to cticenhour/moose that referenced this issue May 12, 2022
tophmatthews added a commit to tophmatthews/moose that referenced this issue May 12, 2022
cticenhour added a commit to cticenhour/moose that referenced this issue May 13, 2022
cticenhour added a commit to cticenhour/moose that referenced this issue May 13, 2022
cticenhour added a commit to cticenhour/moose that referenced this issue May 13, 2022
cticenhour added a commit to cticenhour/moose that referenced this issue May 13, 2022
tophmatthews added a commit to tophmatthews/moose that referenced this issue May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Framework P: normal A defect affecting operation with a low possibility of significantly affects. T: task An enhancement to the software.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant