Your types are wrong, you can't pass a pointer to an array of pointers to a function expecting an array of arrays (i.e. a pointer to an array).
For the signature of get_translation
that you have, you need:
double (*trans)[3] = malloc(cell->size * sizeof(double[3]));
Charles Bailey
2010-09-15 22:18:40