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

Allow adding additional variables to existing FParser objects #480

Merged
merged 2 commits into from
Mar 2, 2015

Conversation

dschwen
Copy link
Member

@dschwen dschwen commented Feb 26, 2015

This allows users to add variables to existing and parsed FParser objects (for example copies of fully build parsers). The main use is to add variables to use RegisterDerivative from #463 to make them targets of custom derivatives on demand (i.e. at different levels in an automatic differentiation chain to get a high order derivative).

I'm also using friend to allow the FunctionParserADBase class access to private members of FunctionParserBase. These classes are closely tied together and the only alternative would be straight up modifying FunctionParserBase to put in the AD functionality.

@moosebuild
Copy link

Results of testing c619dec using libmesh_PR_test recipe:

Passed on: linux-gnu

View the results here: https://www.moosebuild.com/view_job/12333

@moosebuild
Copy link

Results of testing c619dec using libmesh_PR_test_dbg recipe:

Passed on: linux-gnu

View the results here: https://www.moosebuild.com/view_job/12334

@jwpeterson
Copy link
Member

If this works with the MOOSE apps, 👍

jwpeterson added a commit that referenced this pull request Mar 2, 2015
Allow adding additional variables to existing FParser objects
@jwpeterson jwpeterson merged commit f4bab77 into libMesh:master Mar 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants