This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
dev:fypp [2017/03/15 17:00] pseewald [Fortran metaprogramming using Fypp] |
dev:fypp [2017/03/16 22:18] (current) 62.32.1.111 fix broken link |
||
---|---|---|---|
Line 4: | Line 4: | ||
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]]. | ||
===== Debugging Fypp directives ===== | ===== Debugging Fypp directives ===== | ||
- | Compiler and runtime messages always refer to the original (not preprocessed) ''.F'' file such that Fypp-preprocessed files can usually be ignored. Only for debugging Fypp directives, it is sometimes necessary to consider preprocessed Fortran sources. After compiling CP2K, all Fypp-preprocessed sources are stored in ''cp2k/obj'' with ''.F90'' extension. In order to find a specific line in a preprocessed file, consider the [[http://fypp.readthedocs.io/en/stable/fypp.html#line-numbering-directives|line numbering directives]]. | + | Compiler and runtime messages always refer to the original (not preprocessed) ''.F'' file such that Fypp-preprocessed files can usually be ignored. Only for debugging Fypp directives, it is sometimes necessary to consider preprocessed Fortran sources. After compiling CP2K, all Fypp-preprocessed sources are stored in ''cp2k/obj'' with ''.F90'' extension. In order to find a specific line in a preprocessed file, consider the [[http://fypp.readthedocs.io/en/stable/fypp.html#line-numbering-markers|line numbering markers]]. |
By default, CP2K invokes Fypp with ''-n'' option. To invoke Fypp with other options, put ''FYPPFLAGS=<options>'' in your ''arch'' file. To learn about all Fypp options, invoke ''cp2k/tools/build_utils/fypp -h''. | By default, CP2K invokes Fypp with ''-n'' option. To invoke Fypp with other options, put ''FYPPFLAGS=<options>'' in your ''arch'' file. To learn about all Fypp options, invoke ''cp2k/tools/build_utils/fypp -h''. |