ENH: limit vtk floatField range (fixes #1055)
- for space-savings the VTK fields are normally written as 'float' rather than double. When a double field contains very large values, these can result in a overflow when converted to float. Now trap these with the appropriate numeric limits. No warning when these values are clipped: it should be readily apparent from the output. ENH: handle symmTensor component swapping directly on VTK output. - use VTK output routines in vtkSurfaceWriter to benefit from the above changes
Showing
- src/fileFormats/vtk/format/foamVtkAppendRawFormatter.C 17 additions, 3 deletionssrc/fileFormats/vtk/format/foamVtkAppendRawFormatter.C
- src/fileFormats/vtk/format/foamVtkAsciiFormatter.C 16 additions, 3 deletionssrc/fileFormats/vtk/format/foamVtkAsciiFormatter.C
- src/fileFormats/vtk/format/foamVtkBase64Layer.C 17 additions, 3 deletionssrc/fileFormats/vtk/format/foamVtkBase64Layer.C
- src/fileFormats/vtk/format/foamVtkLegacyRawFormatter.C 20 additions, 15 deletionssrc/fileFormats/vtk/format/foamVtkLegacyRawFormatter.C
- src/fileFormats/vtk/output/foamVtkOutput.H 17 additions, 0 deletionssrc/fileFormats/vtk/output/foamVtkOutput.H
- src/sampling/sampledSurface/writers/vtk/vtkSurfaceWriter.C 45 additions, 149 deletionssrc/sampling/sampledSurface/writers/vtk/vtkSurfaceWriter.C
- src/sampling/sampledSurface/writers/vtk/vtkSurfaceWriter.H 12 additions, 2 deletionssrc/sampling/sampledSurface/writers/vtk/vtkSurfaceWriter.H
- src/sampling/sampledSurface/writers/vtk/vtkSurfaceWriterImpl.C 79 additions, 29 deletions...ampling/sampledSurface/writers/vtk/vtkSurfaceWriterImpl.C
Please register or sign in to comment