Commit 345c12b9 authored by Andrew Bauer's avatar Andrew Bauer
Browse files

Adding EnSight case file output

Also, removing warning about missing BlockIds as well as not
enforcing that the BlockId cell data array be the scalar
quantity.
parent 7fe30aa1
Pipeline #26698 failed with stage
This diff is collapsed.
......@@ -77,11 +77,20 @@ public:
vtkGetMacro(GhostLevel,int);
// Description
// Specify whether the geoemtry changes each timestep
// Specify whether the geometry changes each timestep
// if false, geometry is only written at timestep 0
vtkSetMacro(TransientGeometry,bool);
vtkGetMacro(TransientGeometry,bool);
// Description
// Automatically output the case file in the WriteData()
// method. The passed in integer is the number of time
// steps (i.e. the passed in parameter to WriteCaseFile()).
// A negative value indicates do not write out the case
// file.
vtkSetMacro(OutputCaseFile,int);
vtkGetMacro(OutputCaseFile,int);
//Description
//set the number of block ID's
vtkSetMacro(NumberOfBlocks,int);
......@@ -92,11 +101,11 @@ public:
//this class keeps a reference to the array and will not delete it
virtual void SetBlockIDs(int* val)
{
BlockIDs=val;
this->BlockIDs=val;
}
virtual int* GetBlockIDs()
{
return BlockIDs;
return this->BlockIDs;
}
// Description:
......@@ -146,8 +155,8 @@ protected:
int NumberOfBlocks;
int * BlockIDs;
bool TransientGeometry;
int OutputCaseFile;
int GhostLevel;
vtkUnstructuredGrid* TmpInput;
vtkEnSightWriter(const vtkEnSightWriter&) VTK_DELETE_FUNCTION;
void operator=(const vtkEnSightWriter&) VTK_DELETE_FUNCTION;
......
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