Re: What do you prefer: real(8) or double precision and why?
From: Janne Blomqvist (jblomqvi_at_roskaposti.invalid)
Date: Tue, 31 Aug 2004 16:55:23 +0300 (EEST)
Stig Kildegård Andersen wrote:
> The include solutions however, appear to give me a problem with using fpp,
> that I believe I need because I use MPI and wnat to be able to use my code
> on platforms that do not support MPI. CVF, which I currently use for
> development, appears to run fpp before including anything and hence it
> appears to ignore the preprocessor directives in the include files. Does
> anyone know a way to get around this?
Can't you run fpp separately on the include files before you run the
compiler? E.g. if you call your include files .I90 you can run
fpp -DMPI $*.I90 >$*.i90
to process all .I90 files into .i90 files (in the example above
defining the "MPI" flag so that code between
gets included etc.). The $* syntax above is for make, I'm sure your
build tool has something similar.
And of course, in your code you then include the .i90 files, not the
.I90 ones. ;-)
-- Janne Blomqvist