idaholab / moose

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

Build rule based hit input transformation tool #10368

Open dschwen opened 6 years ago

dschwen commented 6 years ago

Rationale

Input file breaking syntax changes and deprecations in MOOSE require manual fixing of input files.

Description

We'd like to develop a transformation tool that operates on the hit AST which can apply rule based transformations to fix up input files automatically. A big driver is the solid mechanics to tensor mechanics conversion. We believe it should be possible to largely automate this.

Impact

Added capability. This will enable us to ship rule sets to patch user inputs whenever we introduce breaking changes in MOOSE.

Ping @sapitts, @rwcarlsen

YaqiWang commented 6 years ago

I hate deprecation message coming up unexpected when I run an input, so I like this.

dschwen commented 6 years ago

Working on the next step: backtracking.