idaholab / moose

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

InputParameters applyParameter should error if no parameter fit #27556

Open GiudGiud opened 1 week ago

GiudGiud commented 1 week ago

Bug Description

While coding physics I m moving a fair amount of parameters from one object to another. There is no reason to use applyParameter if none of the parameters are relevant. it should error, telling the developer that the call was either useless or worse, not working as expected

Steps to Reproduce

Use applyparam in an action, with none of the action parameters matching an object's (created by the action)

Impact

Easier development

[Optional] Diagnostics

No response