It is now possible to give parameters as command-line arguments. After dealing with the logic of using predefined MATC variables for the "Run Control" section this was just ~10 lines of additional code.
So now you can say, for example
Code: Select all
ElmerSolver case.sif –rpar 2 1.0 3.14
To use in code refer to the parameters in MATC (in C-convention) as rpar(0), rpar(1), etc.
For example
Code: Select all
Heat Source = $rpar(1)
Made a simple test and seems to work. Since a few years (F2008 standard) command-line has been standardized also for Fortran so should work on all platforms once the updated executables reach you.
Have fun!
-Peter