idaholab / moose

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

Unused parameter in mesh generators / --mesh-only does not cause warning or error #14550

Open YaqiWang opened 4 years ago

YaqiWang commented 4 years ago

Bug Description

If we add a wrong parameter (non-required) in a mesh generator, the code will run fine in --mesh-only mode although it should produce a warning or error.

Steps to Reproduce

Can be produced by intentionally introducing a typo in a non-required parameter.

Impact

Prevent unexpected behavior from happening.

friedmud commented 2 years ago

This is about unused parameter warnings.

For this to work with mesh-only we would need to verify that no later Actions are registered to the current block - and only issue unused parameter warnings in that case. Otherwise, multiple Actions reading different parameters from the same block on either side of the mesh-only "barrier" would generate spurious warnings