-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Make getUNodal
function in ConservativeAdvection
#31634
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
base: next
Are you sure you want to change the base?
Conversation
f75d0cd
to
332c062
Compare
Job Documentation, step Docs: sync website on de34b6c wanted to post the following: View the site here This comment will be updated on new commits. |
Job Coverage, step Generate coverage on de34b6c wanted to post the following: Framework coverage
Modules coverageCoverage did not change Full coverage reportsReports
This comment will be updated on new commits. |
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override; | ||
virtual void computeResidual() override; | ||
virtual void computeJacobian() override; | ||
virtual GenericReal<is_ad> getUNodal(unsigned int n) { return _u_nodal[n]; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
virtual GenericReal<is_ad> getUNodal(unsigned int n) { return _u_nodal[n]; } | |
virtual const GenericReal<is_ad> & getUNodal(const std::size_t n) { return _u_nodal[n]; } |
AD containers are big - we definitely don't want to copy them
Ready for re-review |
wait...I don't want to return a ref, since downstream I want something like this,
and this leads to |
e873946
to
332c062
Compare
332c062
to
02d1bba
Compare
Okay, if I turn the
which can then be called via
|
Ready for re-review @loganharbour @lindsayad |
You should still be able to make comparisons with an enum. I prefer the enum because it allows the opportunity for expanding the list of enumerators in the future. Full upwinding is only first order accurate. There's also second order upwinding and many other types of upwind schemes one can construct |
oh I thought I couldn't inherit enums. I'll try again... |
02d1bba
to
e17c92f
Compare
indeed, I was thinking of something different. fixed it now. Thanks @lindsayad ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the one suggestion
Closes #31633