Data types
Table 9.1:
SIDL to Fortran 90 Type Mappings
SIDL TYPE |
Fortran 90 TYPE |
int |
INTEGER (kind=sidl_int) |
long |
INTEGER (kind=sidl_long) |
float |
REAL (kind=sidl_float) |
double |
REAL (kind=sidl_double) |
bool |
LOGICAL |
char |
CHARACTER (LEN=1) |
string |
CHARACTER (LEN=*) |
fcomplex |
COMPLEX (kind=sidl_fcomplex) |
dcomplex |
COMPLEX (kind=sidl_dcomplex) |
enum |
INTEGER (kind=sidl_enum) |
opaque |
INTEGER (kind=sidl_opaque) |
interface |
derived type |
class |
derived type |
array |
derived type |
The mapping for simple SIDL types to Fortran 90 is given in
Table 9.1. The kind parameters, given in
the sidl F90 module, define integer
parameters for sidl_int, sidl_long,
sidl_float, sidl_double,
sidl_fcomplex, sidl_dcomplex,
sidl_enum and sidl_opaque to
give sizes that match the corresponding SIDL types.
The remainder of this subsection elaborates on mappings of strings,
pointers, enumerations, and arrays.
Subsections
babel-1.4.0
users_guide Last Modified 2008-10-16
http://www.llnl.gov/CASC/components
components@llnl.gov