Alvaro Fernandez wrote:
> I don't find much use for
> different real kinds within the same code; they complicate interfaces,
> complicate maintenance, create "ambiguities", and, most importantly,
> generally create the false impression that you have more control over the
> precision of your numbers than you really have. It's very misleading IMHO.
I would echo the same. I eventually found it untrackable to separate doubles
and singles and use doubles unless there is a real need for singles (like
memory savings or some library which uses single precision). So most if not
all my reals are KIND=r_wp, and all my constants have a 1.0_r_wp or alike,
which looks ugly and takes space, but at least it works.
For integers I declare them all with KIND=i_wp, but I have not bothered
putting the suffix unless on an actual argument, so:
i=i+1 ! Not i=i+1_i_wp
but
call f(1_i_wp)
Painful...
Best,
Aleks
|