fypp
fypp copied to clipboard
Python powered Fortran preprocessor
I wish to expand a macro in an include directive (to determine the file name). I have something like ``` #:set FILENAMES = ['file', 'anotherfile'] #:for FILE in FILENAMES !...
I'm trying to debug a segfault for a new library in DFTB+ using Intel oneAPI. To get a meaningful traceback I would like to emit line markers with `fypp` but...
The Intel compilers provide a flag [`-fpp-name=`](https://www.intel.com/content/www/us/en/develop/documentation/fortran-compiler-oneapi-dev-guide-and-reference/top/compiler-reference/compiler-options/preprocessor-options/fpp-name.html) which can be used to specify an alternative preprocessor of the form: ``` alt_fpp [ [–D]..] [[-I]..] inputfile ``` which prints output to...
If there is an inadvertent copy-paste mistake in the code to be pre-processed, it would be useful to get a warning/error for repeated definitions of the same macro, either within...
This provides helpful cmake interfaces: - `Fypp_target_sources` equivalent to `target_sources`. This is the main interface that should be used - `Fypp_add_library` = `add_library` + `Fypp_target_sources` - `Fypp_add_executable` = `add_executable` +...
A colleague of mine has [used](https://github.com/LRZ-BADW/OMMOP/blob/main/kernel_2d_hip.cpp) the variadic templates of C++ to mimic a kernel launcher: ``` template void launch2D(const dim3 & numBlocks, const dim3 & blockDim, F & f,...
Hello, I'm trying to use Fypp with CMake build system, and faced an issue. Fypp currently can be used as `$ fypp src/Core/test.fpp src/Core/test.F90` which is nice, and simple. But...
I have a code: ```fortran #:if defined("SINGLE_PRECISION") #:def MACRO(A) call bcast_doubles(dminfo,size($A$),$A$) #:enddef MACRO #:else #:def MACRO(A) call bcast_reals(dminfo,size($A$),$A$) #:enddef MACRO #:endif module init contains subroutine tst() real :: ah2onw(2) real...
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.2 to 3.1.3. Release notes Sourced from jinja2's releases. 3.1.3 This is a fix release for the 3.1.x feature branch. Fix for GHSA-h5c8-rqwp-cp95. You are affected if...
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.0.6 to 2.0.7. Release notes Sourced from urllib3's releases. 2.0.7 Made body stripped from HTTP requests changing the request method to GET after HTTP 303 "See Other"...