6 Mar
2010
6 Mar
'10
10:47 a.m.
Hi,
I am fairly new to mpi (and boost mpi). I have an mpi program and I
need to dump some intermediate and results to a simple text file.
First, is there already any good (using boost.mpi or not) to open and
write files (let's say from process 0) and write to them.
Second, if not, I am already trying to make the code as transparent as
possible:
I guess the most primitive way to do this is to do something like
ofstream ofs();
if(world.rank()==0) ofs.open("file");
...
if(world.rank()==0) ofs<