| 1 | = Tools to work with Fortran Namelists and Jobcards = |
| 2 | |
| 3 | == sed == |
| 4 | |
| 5 | If you want to change GiBUU input jobcards via a (bash) script, one way is to store the skeleton as a template, where the variables you want to change are given by placeholders like XXX. YYY etc. |
| 6 | Then you may use `sed` to replace the placeholder by the actual value, e.g. "sed s/XXX/myValue/" |
| 7 | |
| 8 | == f90nml, nmltab == |
| 9 | |
| 10 | Recently (april 2022) I became aware of two projects at !GitHub, which are capable of reading in, changing, fine printing, comparing etc. of Fortran jobcards/namelists, written in Python: |
| 11 | * f90nml [https://github.com/marshallward/f90nml] |
| 12 | * nmltab [https://github.com/aekiss/nmltab] |