Commit 7d36c855 authored by loring's avatar loring

in get atts root rank use mpi collectives rather than point

to point for gather. fix a logic bug in buffer connection
that resulted in direct read doing nothing


git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@26854 18c085ea-50e0-402c-830e-de6fd14e8384
parent 2bfc1072
This diff is collapsed.
......@@ -117,25 +117,27 @@ BufferConnection::Append(const unsigned char *buf, int count)
// Creation: Mon Mar 25 14:21:35 PST 2002
//
// Modifications:
//
//
// Burlen Loring, Mon Aug 3 13:29:43 PDT 2015
// Fix a bug where this method did nothing.
//
// ****************************************************************************
long
BufferConnection::DirectRead(unsigned char *buf, long len)
{
long retval = 0;
if (!buf)
return 0;
if(buffer.size() > 0 && buf != 0)
long n = 0;
while (buffer.size() && (n < len))
{
for(int i = 0; i < retval && i < len; ++i)
{
buf[i] = buffer.front();
buffer.pop_front();
++retval;
}
buf[n] = buffer.front();
buffer.pop_front();
++n;
}
return retval;
return n;
}
// ****************************************************************************
......
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