LLNL / shroud

Shroud: generate Fortran and Python wrappers for C and C++ libraries
BSD 3-Clause "New" or "Revised" License
91 stars 7 forks source link

Add file fc-statements.json #356

Closed ltaylor16 closed 1 month ago

ltaylor16 commented 1 month ago

fc-statements.json contains the Fortran/C statements that were in statements.py. This makes it easier to replace the contents later without modifying Python code directly. Replaces fc-statements.yaml file that was added earlier. The code slowed down significantly when reading that file after moving all the fc_statements into it.

Add statements keyword to input YAML file to allow additional statements to be added.

Replace some RuntimeError exception while processing statements with better error handling. Tested in error-stmt.yaml test.