Skip to content

database_to_eqdsk: Add possibility to change namelist from commandline

Thomas Hayward-Schneider requested to merge script_override into master

adding arguments e.g.

database_to_eqdsk --override_NSTTP=5 --override_RELAX=0.5 [original list of arguments]

will lead to

NSTTP=5
RELAX=0.5

being added to the end of the EQDATA section of the chease_namelist file.

I appreciate that the logic is perhaps a bit complex, but I tried to comment everything as I went (e.g. why the shift, etc).

N.B. I introduced a bash dependency, since the variable string parsing is done with bashisms. If this is a big deal, I could try to port them to sh.

Edited by Thomas Hayward-Schneider

Merge request reports