Re: Fortranspeak & Javaspeak
- From: xieweibao@xxxxxxxxxxxxxx
- Date: 31 May 2006 03:17:51 -0700
A lot of these terms do not have an equivalent in Fortran because the
concepts do not exist. If you work in F95, some of the concepts do
exist. What you need is an interface between the two - have a look at
JAPI (http://www.japi.de/)
logical = bool
real = float
double precision = double
integer *2 = short
integer*4 = int
integer*8 = long
character = byte
You have to find out what the lengths are in Java. Note that chars in
Java are 'Unicoded'. They may be 16 or 32 bits. Characters in Fortran
are normally 8 bits so if you're passing character arrays, they have to
go through some sort of conversion, otherwise pass as a byte.
I don't know how big logicals are but in Java, they're supposed to be 1
bit.
.
- Follow-Ups:
- Re: Fortranspeak & Javaspeak
- From: glen herrmannsfeldt
- Re: Fortranspeak & Javaspeak
- References:
- Fortranspeak & Javaspeak
- From: David . Paterson
- Fortranspeak & Javaspeak
- Prev by Date: Re: Fortranspeak & Javaspeak
- Next by Date: Re: Test send
- Previous by thread: Re: Fortranspeak & Javaspeak
- Next by thread: Re: Fortranspeak & Javaspeak
- Index(es):
Relevant Pages
|