Actually, I do not need a global vector. For the test, I will replace it with a simple MPI replication fucntion. Since I have to finish writing a chapter, I may do it late on Monday.