Commit 290f2727 authored by fogal1's avatar fogal1

Make sure all processors agree about communication.

Does some global communication to make sure all processors agree
on whether or not ghost and nesting information needs to be
synchronized.

(Merge from 1.12RC)


git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@7193 18c085ea-50e0-402c-830e-de6fd14e8384
parent 58835525
......@@ -457,6 +457,11 @@ avtGenericDatabase::SetCycleTimeInDatabaseMetaData(avtDatabaseMetaData *md, int
// Tom Fogal, Sun May 3 19:50:37 MDT 2009
// Don't do any ghost calculations when there are no domains.
//
// Tom Fogal, Mon May 4 17:38:17 MDT 2009
// Make sure all processors agree about whether or not they should
// synchronize ghost and nesting information. This replaces the `blind
// skip' logic used previously.
//
// ****************************************************************************
avtDataTree_p
......@@ -659,6 +664,14 @@ avtGenericDatabase::GetOutput(avtDataRequest_p spec,
visitTimer->StopTimer(t0, "Creating simplified nesting rep.");
}
// Figure out the nesting globally to make sure all processors will
// synchronously communicate (or not) later.
// Stuff them into ints first. MPI_MAX isn't defined on MPI_BOOLs.
alreadyDidNesting = static_cast<bool>
(UnifyMaximumValue(static_cast<int>(alreadyDidNesting)));
alreadyDidGhosts = static_cast<bool>
(UnifyMaximumValue(static_cast<int>(alreadyDidGhosts)));
//
// Add node numbers if requested.
//
......@@ -740,7 +753,7 @@ avtGenericDatabase::GetOutput(avtDataRequest_p spec,
//
// Apply ghosting when domains nest within other domains (AMR meshes)
//
if (!alreadyDidNesting && nDomains > 0)
if (!alreadyDidNesting)
{
int t0 = visitTimer->StartTimer();
ApplyGhostForDomainNesting(datasetCollection, domains, allDomains, spec,
......@@ -762,7 +775,7 @@ avtGenericDatabase::GetOutput(avtDataRequest_p spec,
if (ghostType != NO_GHOST_DATA)
ghostDataIsNeeded = true;
if (ghostDataIsNeeded && !alreadyDidGhosts && nDomains > 0)
if (ghostDataIsNeeded && !alreadyDidGhosts)
{
didGhosts = CommunicateGhosts(ghostType, datasetCollection, domains,
spec, src, allDomains,
......
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