MPI Write?# Computation - 科学计算
s*l
1 楼
I have a simple MPI-Fortran 90 program and I want each individual
to write data to a different file: so I am expecting:
processor 1 to pos001.dat
processor 2 to pos002.dat
... ...
So I convert the rank to a string by subroutine 'num2str' then
put it in the filename. But strangely I always have some files missing.
I might have all the file pos001.dat to pos020.dat except pos003.dat
Can anyone tell me what is wrong. Is there a better way to deal with
situation?
to write data to a different file: so I am expecting:
processor 1 to pos001.dat
processor 2 to pos002.dat
... ...
So I convert the rank to a string by subroutine 'num2str' then
put it in the filename. But strangely I always have some files missing.
I might have all the file pos001.dat to pos020.dat except pos003.dat
Can anyone tell me what is wrong. Is there a better way to deal with
situation?