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

Pass MooseApp pointer to NEML2 #28492

Open
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

dschwen
Copy link
Member

@dschwen dschwen commented Aug 29, 2024

Closes #28486

@dschwen dschwen requested review from hugary1995 and removed request for bwspenc and jiangwen84 August 29, 2024 14:44
@dschwen
Copy link
Member Author

dschwen commented Aug 29, 2024

It looks like NEML2 currently has no method in the options object to check if an option exists.

Copy link
Contributor

@hugary1995 hugary1995 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

modules/solid_mechanics/src/neml2/utils/NEML2Utils.C Outdated Show resolved Hide resolved
modules/solid_mechanics/test/neml2/src/NEML2TestModel.cxx Outdated Show resolved Hide resolved
modules/solid_mechanics/test/neml2/src/NEML2TestModel.cxx Outdated Show resolved Hide resolved
modules/solid_mechanics/test/neml2/src/NEML2TestModel.cxx Outdated Show resolved Hide resolved
Comment on lines +47 to +50
neml2::Model & get_model_moose(const std::string & mname,
MooseBase * moose_base,
bool enable_ad = true,
bool force_create = true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason for not directly passing a pointer to MooseApp?

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.

Add MOOSE specific neml2::get_model method
2 participants