Re: Reading complex multidimensionalarrays from C
- From: timos@xxxxxxxxxxxxxxxx
- Date: Sat, 28 Apr 2007 18:32:55 +0000 (UTC)
Hi!
1. Fortran subscripts (unless declared otherwise) start at 1. In C
arrays are 0 based.
2. Fortran is column major but C is row major. So with 2 subscripts
you need to interchange them on the C side.
Yes, I already know this, but it didn't help :-)
I won't try to suggest what you might write in C to handle the 3
argument case.
:-( That was exactly what I need to do.
Regards,
Timo
.
- Follow-Ups:
- Re: Reading complex multidimensionalarrays from C
- From: e p chandler
- Re: Reading complex multidimensionalarrays from C
- References:
- Reading complex multidimensionalarrays from C
- From: timos
- Re: Reading complex multidimensionalarrays from C
- From: e p chandler
- Re: Reading complex multidimensionalarrays from C
- From: e p chandler
- Reading complex multidimensionalarrays from C
- Prev by Date: Re: add a0 format to language to print trimmed character variables
- Next by Date: Re: Reading complex multidimensionalarrays from C
- Previous by thread: Re: Reading complex multidimensionalarrays from C
- Next by thread: Re: Reading complex multidimensionalarrays from C
- Index(es):