Closed xinzhang8noaa closed 4 years ago
My suggestion would be to use Fortrans capability of extending a generic defintion with subsequent 'generic =>' directives:
#:for TYPE, KIND in TYPE_KINDS
#:for VER, _, _ in VERSIONS
generic :: get => get_${TYPE}$_vector_${VER}$
#:endfor
#:endfor
Theoretically, it is also possible to achieve with fypp exactly what you wish, but that would require an additional macro call and would make the code much less readable.
Many Thanks ! your suggestion works !
I like fypp !
Hi, I am trying to use the fypp to generate following code:
.. code-block:: bash
Here is my code with fypp directives:
my issue is how to remove the last , & in generic statement.
Thanks,