Re: busting sp datatypes
- From: wim <wim.van.hoydonck@xxxxxxxxx>
- Date: Tue, 26 Aug 2008 02:45:44 -0700 (PDT)
glen herrmannsfeldt wrote:
(snip)
KIND(0) will be the appropriate KIND for default
(single precision) integer. (Though integer data is
not usually described as single and double precision.)
There may not be a standard way to generate a double
length integer variable.
what about using selected_int_kind?
$ cat int.f90
program int
implicit none
integer :: i
do i = 1,20
print *, i, selected_int_kind(i)
end do
end program int
This should show you what you need for a double length integer.
Here, it gives: 1,2,4, and 8. 4 is the one you get with a default
integer.
Wim
.
-- glen
- Follow-Ups:
- Re: busting sp datatypes
- From: Ron Ford
- Re: busting sp datatypes
- From: glen herrmannsfeldt
- Re: busting sp datatypes
- References:
- Re: busting sp datatypes
- From: glen herrmannsfeldt
- Re: busting sp datatypes
- Prev by Date: Re: Most efficient way to write a large matrix to disk
- Next by Date: Re: Implementing JAVA interfaces in FORTRAN 20xx
- Previous by thread: Re: busting sp datatypes
- Next by thread: Re: busting sp datatypes
- Index(es):
Relevant Pages
|