Commit 23dff2bd authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

BUG #14897: Fix periodic boundary issues with vtkNetCDFCAMReader.

vtkNetCDFCAMReader did not deal with periodicity of the domain
correctly. There were cases (as demonstrated by the report BUG) where
the cells we incorrectly split. Fixed the code to be more robust to the
potential ways in which the points in the cells are defined. Also
includes some performance tweaks e.g. using vector instead of map.

This deprecates the SetCellLayerRight/GetCellLayerRight API on the
reader. This API is no longer needed since the reader makes an informed
decision when deciding which side to place the cells that overlap the
periodic boundary.
parent 0181ce42
This diff is collapsed.
......@@ -67,8 +67,10 @@ public:
// Specify which "side" of the domain to add the connecting
// cells at. 0 indicates left side and 1 indicates right side.
// The default is the right side.
vtkSetMacro(CellLayerRight, int);
vtkGetMacro(CellLayerRight, int);
// @deprecated This method is no longer supported. The reader automatically
// decides which side to pad cells on. Using this method has no effect.
VTK_LEGACY(void SetCellLayerRight(int));
VTK_LEGACY(int GetCellLayerRight());
protected:
vtkNetCDFCAMReader();
......@@ -110,8 +112,6 @@ private:
int SingleLevel;
int CellLayerRight;
double * TimeSteps;
long NumberOfTimeSteps;
......
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