-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Refactor parsed material backend and add ADParsedMaterial #15331
Conversation
Job Precheck on a89efcc wanted to post the following: Your code requires style changes. A patch was auto generated and copied here
Alternatively, with your repository up to date and in the top level of your repository:
|
@@ -1 +1 @@ | |||
Subproject commit 30d38fc9b5bc608655d033117a8d5cb59c57ae4c | |||
Subproject commit cd8b4510adc28c1b480dda33cb7f449831f2fad1 |
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.
Caution! This contains a submodule update
@@ -1 +1 @@ | |||
Subproject commit 30d38fc9b5bc608655d033117a8d5cb59c57ae4c | |||
Subproject commit cd8b4510adc28c1b480dda33cb7f449831f2fad1 |
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.
Caution! This contains a submodule update
2e8cb8c
to
68d7bc4
Compare
@@ -1 +1 @@ | |||
Subproject commit 30d38fc9b5bc608655d033117a8d5cb59c57ae4c | |||
Subproject commit cd8b4510adc28c1b480dda33cb7f449831f2fad1 |
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.
Caution! This contains a submodule update
2f6d5b4
to
57554a1
Compare
@@ -1 +1 @@ | |||
Subproject commit 30d38fc9b5bc608655d033117a8d5cb59c57ae4c | |||
Subproject commit cd8b4510adc28c1b480dda33cb7f449831f2fad1 |
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.
Caution! This contains a submodule update
57554a1
to
58a1685
Compare
@@ -1 +1 @@ | |||
Subproject commit 30d38fc9b5bc608655d033117a8d5cb59c57ae4c | |||
Subproject commit cd8b4510adc28c1b480dda33cb7f449831f2fad1 |
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.
Caution! This contains a submodule update
58a1685
to
db3927f
Compare
@@ -1 +1 @@ | |||
Subproject commit 30d38fc9b5bc608655d033117a8d5cb59c57ae4c | |||
Subproject commit cd8b4510adc28c1b480dda33cb7f449831f2fad1 |
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.
Caution! This contains a submodule update
db3927f
to
704a259
Compare
@@ -1 +1 @@ | |||
Subproject commit 30d38fc9b5bc608655d033117a8d5cb59c57ae4c | |||
Subproject commit cd8b4510adc28c1b480dda33cb7f449831f2fad1 |
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.
Caution! This contains a submodule update
Why is a PR that contains a libmesh update tested against a two week old conda libmesh package?! What is the workflow supposed to be now? |
|
You will want to change "version" in You need to do some change in the |
704a259
to
498c0da
Compare
Ok, cool. Apparently I didn't pay attention in class when the new workflow was introduced... |
@@ -1 +1 @@ | |||
Subproject commit 30d38fc9b5bc608655d033117a8d5cb59c57ae4c | |||
Subproject commit cd8b4510adc28c1b480dda33cb7f449831f2fad1 |
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.
Caution! This contains a submodule update
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.
I think this looks really good @dschwen
using FunctionParserUtils<T>::_eval_error_msg; \ | ||
using FunctionParserUtils<T>::_func_params | ||
|
||
// Helper class to pic the correct function parser |
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.
particle in cell?
// fill the parameter vector, apply tolerances | ||
for (unsigned int i = 0; i < _nargs; ++i) | ||
{ | ||
if (_tol[i] < 0.0) | ||
_func_params[i] = (*_args[i])[_qp]; | ||
else | ||
{ | ||
a = (*_args[i])[_qp]; | ||
auto a = (*_args[i])[_qp]; |
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.
I'm always curious whether to optimize for the probably much more popular use case which is builtins vs. optimize for the potentially much more expensive but maybe much less used user-defined type. I'll let you decide whether you want to copy here or catch as const auto &
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.
Since FParser doesn't know MooseArray
s I have to prepare a separate parameter vector. Good point about the copying though. I could add a separate mode in which parameters are passed as a vector of pointers rather than a vector of copied values. I would prefer to leave that for the next steps though.
Ah, I think now I'm seeing errors due to Gary's recent PR. I think we made some similar colliding changes. |
I came in to say thanks for this long-awaited PR until I saw my name. |
Ha, no worries. It is up to me to rebase and fix this! |
498c0da
to
9f2d896
Compare
@@ -1 +1 @@ | |||
Subproject commit 30d38fc9b5bc608655d033117a8d5cb59c57ae4c | |||
Subproject commit cd8b4510adc28c1b480dda33cb7f449831f2fad1 |
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.
Caution! This contains a submodule update
I have a marmot PR ready |
9f2d896
to
9703f7e
Compare
@@ -1 +1 @@ | |||
Subproject commit 7b841db905481fcdd53fa823184861fa1061960f | |||
Subproject commit f7c572fcde16c25fff3bc2fc69a4f92f555bd945 |
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.
Caution! This contains a submodule update
Job Documentation on 9703f7e wanted to post the following: View the site here This comment will be updated on new commits. |
@lindsayad the |
Oh, |
Crane PR: lcpp-org/crane#58 |
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.
Very exciting stuff
auto result = | ||
JITCompileHelper("DualReal", | ||
ADFPARSER_INCLUDES, | ||
"#include \"DualReal.h\"\n#include \"metaphysicl/dualnumberarray.h\"\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.
@dschwen I should have caught this on review. Just #include ADReal.h
and that should get you everything you need.
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.
ah, cool, I'll make a fixup PR
This mostly lays the groundwork for dual number support in Parsed and Derivative parsed Materials. This includes a libmesh update to allow for JIT compilation with dual numbers.
Refs #15207