Commit b37dca04 by Francois Gygi

added print err code in SlaterDet::write


git-svn-id: http://qboxcode.org/svn/qb/trunk@879 cba15fb0-1239-40c8-b417-11db7ca47a34
parent af64f3bb
......@@ -1749,7 +1749,7 @@ void SlaterDet::write(SharedFilePtr& sfp, string encoding, double weight,
MPI_CHAR,&status);
if ( err != 0 )
cout << ctxt_.mype()
<< " error in MPI_File_write_at_all" << endl;
<< " error in MPI_File_write_at_all: err=" << err << endl;
sfp.set_offset(local_offset+len);
sfp.sync();
......@@ -1763,8 +1763,8 @@ void SlaterDet::write(SharedFilePtr& sfp, string encoding, double weight,
s.size(),MPI_CHAR,&status);
if ( err != 0 )
cout << ctxt_.mype()
<< " error in MPI_File_write, slater_determinant trailer"
<< endl;
<< " error in MPI_File_write, slater_determinant trailer:"
<< " err=" << err << endl;
sfp.advance(s.size());
}
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment