Unfortunately, that won’t be easy to realize with current Fypp. Fypp is basically a Python-based templating engine, without access to the details of the Fortran processor, which is going to compile the code generated by it. One could think about workarounds, though, like a trivial Fortran program (compiled by the processor before the Fypp-preprocessing starts), which outputs the size of the real_kinds
array into a file, which Fypp can then include. However, it would for sure increase the complexity of the build process.
1 Like