Skip to content

How to add Control in my Action? #29567

Discussion options

You must be logged in to vote

Yeah I think I figured it out:

#include Control.h
...
InputParameters params = _factory.getValidParams("MyControl");
// set params...
std::shared_ptr<Control> control = _factory.create<Control>("MyControl", "control_name", params);
_problem->getControlWarehouse().addObject(control);

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jessecarterMOOSE
Comment options

Answer selected by jessecarterMOOSE
@jessecarterMOOSE
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants