Open loganharbour opened 9 months ago
FYI @maxnezdyur @brandonlangley
Could the variable syntax be less ambiguous to not burden the parser with variable tracking?
E.g.,
!var some_file = some_file.i
!include ${some_file.i}
Or perhaps, this variable creation is only at the 'root' level of the document? The concern is the overhead of the parser identifying and tracking 'variables' for use in include processing needed to complete the parse-tree.
Just copying this from @brandonlangley because after reading this issue, I wasn't sure why this wouldn't work already:
There are currently some hurdles with this since the !include filename happens at WASP processing time to put everything in one tree. But the ${some_file} substitution happens later in MOOSE, so WASP doesn't know about the substitution during !include processing.
Reason
It would add flexibility if we could change what file to include via CLI. An example use case is in test specs.
Design
TBD. Supporting something like
along with
would be the most MOOSE-like design. But, this isn't set in stone.
Impact
Added capability.