FEniCS / ffcx

Next generation FEniCS Form Compiler for finite element forms
https://fenicsproject.org
Other
149 stars 40 forks source link

Add language-specific file preamble and postscript #596

Closed chrisrichardson closed 1 year ago

chrisrichardson commented 1 year ago

Currently, there is a hard-wired "C" file preamble for .c and .h files in ffcx/formatting.py. This should be placed in the ffcx/codegeneration/C folder and follow the same pattern as all the other code templates for form, finite_element, integrals etc.

chrisrichardson commented 1 year ago

https://github.com/FEniCS/ffcx/tree/chris/add-c-file-template