Mpi
I am running a parallel program which contains a function called "hamiltonian" which contains a parallel initialization and instructions. However, in the code piece
write (*,*) 'n0=',n0
write (*,*) 'nE=',nE
call hamiltonian(Egs_t,zV_t,zH)
in the main program, all of the processors print out n0 and nE. The parallel calls and invocation is in the hamiltonian function so why should each processor print these out. There is something I do not understand about MPI or BLACS, etc. Please provide some insight on this. Thanks!
|