Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

PDT in libraries

$
0
0

Hi

I've been experimenting with parameterized derived types and got a question regarding building libraries with MODULEs containing PDTs; is it possible to distribute (compiled) libraries containing PDT? I guess it's trivial for PDTs with parameters of LEN type, but what about for KIND type parameters? their values have to be known at compile-time, right?

I've read somewhere that in C++ templates are written in header files which are distributed in textual form or some intermediate/precompiled form along with libraries, and that the actual templated entities are instantiated when they are "USEd" in Fortran terms. (Luckily) Fortran doesn't have header files (AFAIK) but use MODULEs instead; in the case that the answer to the above question is negative, would it be possible to include some (processor dependent) code in a MODULE that makes it possible?


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>