Have you ever had the desire to make a minor alternation to the sif without editing it. Particularly if you do batch jobs sometimes the problem might be that you cannot edit the sif file since you would affect all the jobs in the queue.
Now, there is a handy solution for this that Juha just implemented in the devel branch. This involves a MATC function "env" that reads the environmental variable and passes it on as a string.
For example, if you set the following environmental variables (as in bash),
Code: Select all
export ELMER_ITERS=1
export ELMER_ITERMETHOD=bicgstab
export ELMER_TOL=1.0e-8
Code: Select all
Solver 1
Equation = "Heat Equation"
Variable = "Temperature"
Linear System Solver = "Iterative"
Linear System Iterative Method = $ env("ELMER_ITERMETHOD")
Linear System Max Iterations = $ env("ELMER_ITERS")
Linear System Convergence Tolerance = $ env("ELMER_TOL")
...
-Peter