another calling-fortran-from-C-question
Daniel Franke
daniel.franke@imbs.uni-luebeck.de
Tue Jun 28 21:58:00 GMT 2005
On Tuesday 28 June 2005 23:22, you wrote:
> > I learned these arrays are "assumed-shape" arrays
> They're not. They're of deferred shape.
Ups ...
> I guess I pointed you in the right direction then.
> libgfortran/libgfortran.h contains accessor macros for the descriptors that
> should make your life easier.
Tobi,
I just found it this minute:
libgefortran.h:
248 #define GFC_ARRAY_DESCRIPTOR(r, type) \
249 struct {\
250 type *data;\
251 type *base;\
252 index_type dtype;\
253 descriptor_dimension dim[r];\
254 }
And specific to double-arrays:
262 typedef GFC_ARRAY_DESCRIPTOR (GFC_MAX_DIMENSIONS, GFC_REAL_8)
gfc_array_r8;
The accessor macros are around also.
Happy me =)
Thanks!
Daniel
More information about the Fortran
mailing list