idaholab / moose

Multiphysics Object Oriented Simulation Environment
https://www.mooseframework.org
GNU Lesser General Public License v2.1
1.77k stars 1.05k forks source link

Execute flag limited controllable parameters #15503

Open aeslaughter opened 4 years ago

aeslaughter commented 4 years ago

Reason

In some cases the ability to change/control parameter must be limited. For example, some simulations compute properties that must remain constant with time, but for performing stochastic simulations the parameter must be changed initially from what exists in the main input file.

Design

When declaring a parameter as controllable an execution flag(s) can be provided. If this parameter is changed on a differing execution flag and error will occur.

declareControllable("foo", EXEC_INITIAL);

Impact

This will be an extension to the existing API and add new functionality

aeslaughter commented 4 years ago

@bwspenc

bwspenc commented 4 years ago

Yeah, this sounds like a good way to get the behavior we would want.