Commit a3b2e729 authored by fogal1's avatar fogal1

Merge from 1.12RC.

Fixes:
  * a compile error in the VLI database,
  * a minor bug in printing filenames along an error path,
  * a parallel deadlock in special circumstances.


git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@7171 18c085ea-50e0-402c-830e-de6fd14e8384
parent 61746c6e
......@@ -454,6 +454,9 @@ avtGenericDatabase::SetCycleTimeInDatabaseMetaData(avtDatabaseMetaData *md, int
// Hank Childs, Tue Jan 20 16:33:40 CST 2009
// Add a stage for "waiting for all processors to finish I/O".
//
// Tom Fogal, Sun May 3 19:50:37 MDT 2009
// Don't do any ghost calculations when there are no domains.
//
// ****************************************************************************
avtDataTree_p
......@@ -737,11 +740,11 @@ avtGenericDatabase::GetOutput(avtDataRequest_p spec,
//
// Apply ghosting when domains nest within other domains (AMR meshes)
//
if (!alreadyDidNesting)
if (!alreadyDidNesting && nDomains > 0)
{
int t0 = visitTimer->StartTimer();
ApplyGhostForDomainNesting(datasetCollection, domains, allDomains, spec,
canDoCollectiveCommunication);
canDoCollectiveCommunication);
visitTimer->StopTimer(t0, "Doing ghost nesting");
}
......@@ -759,7 +762,7 @@ avtGenericDatabase::GetOutput(avtDataRequest_p spec,
if (ghostType != NO_GHOST_DATA)
ghostDataIsNeeded = true;
if (ghostDataIsNeeded && !alreadyDidGhosts)
if (ghostDataIsNeeded && !alreadyDidGhosts && nDomains > 0)
{
didGhosts = CommunicateGhosts(ghostType, datasetCollection, domains,
spec, src, allDomains,
......
......@@ -40,6 +40,7 @@
// avtNamedSelectionManager.C //
// ************************************************************************* //
#include <sstream>
#include <avtNamedSelectionManager.h>
#include <vtkCellData.h>
......@@ -321,6 +322,9 @@ avtNamedSelectionManager::DeleteNamedSelection(const std::string &name,
// Programmer: Hank Childs
// Creation: January 30, 2009
//
// Tom Fogal, Sun May 3 19:21:44 MDT 2009
// Fix string formatting when an exception occurs.
//
// ****************************************************************************
void
......@@ -330,10 +334,10 @@ avtNamedSelectionManager::LoadNamedSelection(const std::string &name)
ifstream ifile(qualName.c_str());
if (ifile.fail())
{
char msg[1024];
SNPRINTF(msg, 1024, "Unable to load named selection from file %s",
qualName.size());
EXCEPTION1(VisItException, msg);
std::ostringstream msg;
msg << "Unable to load named selection from file: '"
<< qualName << "'";
EXCEPTION1(VisItException, msg.str().c_str());
}
int fileType;
......@@ -354,10 +358,10 @@ avtNamedSelectionManager::LoadNamedSelection(const std::string &name)
}
else
{
char msg[1024];
SNPRINTF(msg, 1024, "Problem reading named selection from file %s",
qualName.size());
EXCEPTION1(VisItException, msg);
std::ostringstream msg;
msg << "Problem reading named selection from file: '"
<< qualName << "'";
EXCEPTION1(VisItException, msg.str().c_str());
}
int curSize = selList.size();
......
......@@ -65,9 +65,6 @@
#include <avtParallel.h>
#ifdef PARALLEL
#undef SEEK_SET
#undef SEEK_CUR
#undef SEEK_END
#include <mpi.h>
#endif
......
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