User Tools

Site Tools


dev:fypp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
dev:fypp [2017/03/13 10:03] – [Debugging Fypp directives] pseewalddev:fypp [2017/03/15 17:00] – [Fortran metaprogramming using Fypp] pseewald
Line 1: Line 1:
 ====== Fortran metaprogramming using Fypp ====== ====== Fortran metaprogramming using Fypp ======
-Fypp ([[https://bitbucket.org/aradi/fypp|official repository]]) is a Fortran preprocessor based on Python expressions. Fypp directives can be used in all CP2K Fortran source files. For simple metaprogramming tasks (such as conditional compilation and include statements), the default Fortran preprocessor (cpp or fpp) can still be used. However cpp is very limited and if more advanced metaprogramming capability is needed (loop unrolling, templates, code generation), usage of Fypp is highly encouraged. In particular code generators should be written using Fypp instead of custom scripts (if feasible). CP2K's own template engine is deprecated and templates should be implemented using Fypp loops.+Fypp ([[https://bitbucket.org/aradi/fypp|official repository]]) is a Fortran preprocessor based on Python expressions. Fypp directives can be used in all CP2K Fortran source files. For simple metaprogramming tasks (such as conditional compilation and include statements), the default Fortran preprocessor (cpp or fpp) can still be used. However cpp is very limited and if more advanced metaprogramming capability is needed (loop unrolling, templates, code generation), usage of Fypp is highly encouraged. In particular code generators should be written using Fypp instead of custom scripts (if feasible).
  
 For getting started with Fypp, read the [[http://fypp.readthedocs.io/en/stable/|official documentation]]. For getting started with Fypp, read the [[http://fypp.readthedocs.io/en/stable/|official documentation]].
dev/fypp.txt · Last modified: 2020/08/21 10:15 by 127.0.0.1