...
- Python script that parses Fortran code and generates include files based on templates (stored in scripts/generate.py)
- Templates for include files (stored in src/xbeachlibrary/templates/)
- Input parameter definition (stored in src/xbeachlibrary/params.F90)
- Output variables definition (stored in src/xbeachlibrary/variables.F90, so not spaceparams.tmpl anymore!)
Python script
The "makeincludes" program used to parse src/xbeachlibrary/params.F90 and src/xbeachlibrary/spaceparams.tmpl to find all input parameters and output variables respectively. The new templating system uses a Python script located in scripts/generate.py to parse the Fortran code. Also, the spaceparams.tmpl file is replaced by the src/xbeachlibrary/variables.F90 file. The main reason is that the Python script then only needs to parse Fortran code and not also a custom template format as used in the original spaceparams.tmpl file.
...