You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There were a lot of API changes from VTK 8 to VTK 9. This is causing compilation errors in some VTK calls
svSolver/Code/FlowSolvers/ThreeDSolver/svPre/helpers.cxx: In function ‘int VtkUtils_GetAllPolys(vtkPolyData*, int*, vtkIdType**)’:
svSolver/Code/FlowSolvers/ThreeDSolver/svPre/helpers.cxx:1927:40: error: binding reference of type ‘const vtkIdType*&’ {aka ‘const long long int*&’} to ‘vtkIdType*’ {aka ‘long long int*’} discards qualifiers
1927 | while ( pdPgns->GetNextCell( npts, pts ) ) {
| ^~~
The fix is to add a const declaration, for example change
vtkIdType *pts;
to
vtkIdType const *pts;
We need to think about how we want to make these changes, maybe add a test for VTK versions.
The text was updated successfully, but these errors were encountered:
There were a lot of API changes from VTK 8 to VTK 9. This is causing compilation errors in some VTK calls
The fix is to add a
const
declaration, for example changeto
We need to think about how we want to make these changes, maybe add a test for VTK versions.
The text was updated successfully, but these errors were encountered: