#if check for vtk >= 6

pull/14/head
Dmitry Roshchin 2016-03-21 11:35:36 +03:00
parent add2f2decb
commit 5b2f5352eb
2 changed files with 3 additions and 3 deletions

View File

@ -721,7 +721,7 @@ void Operator::DumpPEC2File(string filename , unsigned int *range)
filename += ".vtp";
writer->SetFileName(filename.c_str());
#if VTK_MAJOR_VERSION==6
#if VTK_MAJOR_VERSION>=6
writer->SetInputData(polydata);
#else
writer->SetInput(polydata);

View File

@ -285,7 +285,7 @@ bool VTK_File_Writer::WriteASCII()
}
writer->SetHeader(m_header.c_str());
#if VTK_MAJOR_VERSION==6
#if VTK_MAJOR_VERSION>=6
writer->SetInputData(m_GridData);
#else
writer->SetInput(m_GridData);
@ -316,7 +316,7 @@ bool VTK_File_Writer::WriteXML()
return false;
}
#if VTK_MAJOR_VERSION==6
#if VTK_MAJOR_VERSION>=6
writer->SetInputData(m_GridData);
#else
writer->SetInput(m_GridData);