Earlier quoted context omitted.
Unless you're passing arrays of pointers to things about, the individual elements in a C array should be contiguous.
>Unless you're passing arrays of pointers That seems to be the context from his example: for(i = 0; i I suppose the counterpoint is that he's doing it wrong. But again, maybe physicists just don't want a tool with that much flexibility.
double *a = malloc(sizeof(double)*nx*ny*nz);
int id;
for(int k = 0; k
You can do it in other ways (arrays of pointes, etc), but I think this is probably the simplest conceptually, and the memory is contiguous.