-/**
- * @function Split_System
- * @purpose Helper to divide one system into an array of systems
- * Each sub system will have N = (s->N / n) bodies in it
- * @param s - The original system (typically &universe)
- * @param n - The number of sub systems in the array
- *
- * WARNING: It is the caller's responsibility to free() the returned array
- */
-System * Split_System(System * s, unsigned n)
-{
- System * result = (System*)(calloc(n, sizeof(System)));
- if (result == NULL)
- {
- perror("Couldn't create array of sub systems");
- QuitProgram(true);
- pthread_exit(NULL);
- }