Commit 56209af7 authored by Jon Woodring's avatar Jon Woodring
Browse files

MPI fix to make it run with one processor.

Change-Id: I5e409595be2535341ecad2164b518d14cb4bf935
parent 76a9e183
......@@ -172,6 +172,20 @@ vtkWindBladeReader::vtkWindBladeReader()
this->TotalRank = 1;
}
// make it run on 0 processors (since ParaView doesn't seem to initialize
// when it is single process)
#ifdef VTK_USE_MPI
if(this->TotalRank == 1)
{
int flag;
MPICall(MPI_Initialized(&flag));
if(!flag)
{
MPICall(MPI_Init(0, 0));
}
}
#endif
// by default don't skip any lines because normal wind files do not
// have a header
this->NumberOfLinesToSkip = 0;
......
Supports Markdown
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