Runs and produces reasonable output on one processor. Segfault with mpi.