supermagic mpi sanity code