Commit 13cc1d56 authored by whitlocb's avatar whitlocb
Browse files

I fixed a parallel communication bug that prevented libsim from working in parallel simulations.



git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@8817 18c085ea-50e0-402c-830e-de6fd14e8384
parent 7d6cb408
......@@ -1467,7 +1467,12 @@ Engine::PAR_EventLoop()
//
// Mark C. Miller, Tue Feb 13 16:24:58 PST 2007
// Replaced MPI_Bcast with MPIXfer::VisIt_MPI_Bcast
//
// Brad Whitlock, Tue Nov 3 10:58:23 PST 2009
// I changed the messaging style so libsim works again.
//
// ****************************************************************************
void
Engine::PAR_ProcessInput()
{
......@@ -1477,9 +1482,17 @@ Engine::PAR_ProcessInput()
}
else
{
MPIXfer::VisIt_MPI_Bcast((void *)&par_buf, 1,
PAR_STATEBUFFER, 0, VISIT_MPI_COMM);
par_conn.Append((unsigned char *)par_buf.buffer, par_buf.nbytes);
int msgLength = 0;
MPIXfer::VisIt_MPI_Bcast((void *)&msgLength, 1, MPI_INT,
0, VISIT_MPI_COMM);
char *buf = new char[msgLength];
MPI_Bcast((void *)buf, msgLength, MPI_UNSIGNED_CHAR,
0, VISIT_MPI_COMM);
par_conn.Append((unsigned char *)buf, msgLength);
delete [] buf;
xfer->Process();
}
}
......
......@@ -244,6 +244,10 @@ MPIXfer::SendInterruption(int mpiInterruptTag)
// Instead of sending 1..N 1K size messages, with N being more common, we
// now send 1 size message and then we send the entire command at once.
//
// Brad Whitlock, Tue Nov 3 10:58:50 PST 2009
// I removed one of the calls to slaveprocesscallback since it was incorrect
// to have it.
//
// ****************************************************************************
void
......@@ -310,8 +314,6 @@ MPIXfer::Process()
// Use regular bcast since the previous call to bcast will
// already have gotten the attention of the other processors.
if (slaveProcessInstruction)
slaveProcessInstruction();
MPI_Bcast((void *)buf, msgLength, MPI_UNSIGNED_CHAR,
0, VISIT_MPI_COMM);
free(buf);
......
......@@ -272,7 +272,7 @@ SplashScreen::SplashScreen(bool cyclePictures)
<< tr("October")
<< tr("November")
<< tr("December");
int currentMonth = 10;
int currentMonth = 11;
lLayout->addWidget(new QLabel(versionText, this));
lLayout->addWidget(new QLabel(months[currentMonth-1] + " 2009", this));
......
......@@ -30,6 +30,7 @@
<li>The Resample operator no longer creates artifacts when resampling AMR data.</li>
<li>The VTK writer (for export database) is now much more efficient in parallel.</li>
<li>The option for TACC systems in visit-install is now better represented in visit-install's help message.</li>
<li>Parallel communication code in the compute engine, which was related to libsim, has been fixed so that libsim once again works with parallel simulations.</li>
</ul>
<p>Click the following link to view the release notes for the previous version
of VisIt: <a href="relnotes1.12.0.html">VisIt 1.12.0 Release Notes</a>.</p>
......
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