Hi,
This is primarily to Dan Nagle, but I'm posting to the list
because others may be interested as well.
I've downloaded and begun to look at Dan's make_pm stuff
(Portability Project).
I see that one has to use a namelist file to tell make_pm
what logical KIND has the same size as, say, a byte-size
integer.
How can one determine this?
The only way I can think of to determine the list of LOGICAL KINDs
available on a platform is to try to compile routines with a list of
LOGIGICAL(KIND=n) statements, one by one, and go by which compilations
succeed. Is there a better way?
As far as determining the size of the LOGICAL KINDs one has found,
the only way I can think of for doing this is to declare an array
of them, pass the first and last elements to a C function, and
subtract addresses. Is there a better way?
Finally, I can think of no reason a Fortran compiler couldn't
implement a LOGICAL KIND corresponding to a single bit of
storage. Are there any that do this? If so, there should
be provision for it in the namelist syntax as well.
Thanks,
-P.
--
** Whether the playing field is level depends on the coordinate system. ***
********* Peter S. Shenkin; Schrodinger, Inc.; (201)433-2014 x111 *********
*********** [log in to unmask]; http://www.schrodinger.com ***********
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|