Difference between revisions of "VTK/Examples/Cxx/Broken/IO/ExodusIIWriter"

From KitwarePublic
< VTK‎ | Examples‎ | Cxx
Jump to navigationJump to search
(Match cxx and page name)
(Replaced content with "Fixed at VTK/Examples/Cxx/IO/ExodusIIWriter")
 
Line 1: Line 1:
Requires VTK to be built with VTK_USE_PARALLEL.
+
Fixed at [[VTK/Examples/Cxx/IO/ExodusIIWriter]]
 
 
==ExodusIIWriter.cxx==
 
<source lang="cpp">
 
#include <vtkSmartPointer.h>
 
#include <vtkPolyData.h>
 
#include <vtkExodusIIWriter.h>
 
#include <vtkTimeSourceExample.h>
 
 
int main(int, char *[])
 
{
 
           
 
  vtkSmartPointer<vtkTimeSourceExample> timeSource =
 
    vtkSmartPointer<vtkTimeSourceExample>::New();
 
             
 
  vtkSmartPointer<vtkExodusIIWriter> exodusWriter =
 
    vtkSmartPointer<vtkExodusIIWriter>::New();
 
  exodusWriter->SetFileName("output.exii");
 
  exodusWriter->SetInputConnection (timeSource->GetOutputPort());
 
  exodusWriter->WriteAllTimeStepsOn ();
 
  exodusWriter->Write();
 
                     
 
  return EXIT_SUCCESS;
 
}
 
</source>
 
 
 
{{VTKCMakeLists|{{SUBPAGENAME}}}}
 

Latest revision as of 11:51, 27 April 2017