Re: Passing a 2 dimensional array from fortran to c++



Two things:

- Between Fortran and C, arrays will be virtually transposed because
  they use the array indices in inverse order.

- From what little I understand of C, it seems to me that you are allocating
  each column seperately. Fortran doesn't do that: by default, a 2D array
  will occupy contiguous memory. Try allocating all of the array's memory
  in one chunk.

	Jan
.