swh:1:snp:f521c49ab17ef7db6ec70b2430e1ed203f50383f
Revision 80f72c23db5f90576700cd8c1c87353f1d402add authored by Dmitri Naumov on 31 October 2021, 17:06:19 UTC, committed by Dmitri Naumov on 04 November 2021, 16:52:18 UTC
Adding conversion of short = int16 types.

Merging conversion of vtkLongArray with vtkLongLongArray, and of
vtkUnsignedLongArray with vtkUnsignedLongLongArray.
For some systems the conversion of vtkLongArray, where the size of long
and long long types are different is not available. (But could be added
to the int type array conversion.)

Actually the use of vtkLongArray is discouraged by VTK: "The C++
standard does not define the exact size of the long type, so use of this
type directly is discouraged. If an array of 32 bit integers is needed,
prefer vtkTypeInt32Array to this class. If an array of 64 bit integers
is needed, prefer vtkTypeInt64Array to this class." -- from vtkLongArray
doxygen documentation.

Add compile-time tests for conversion of integer types since in OGS we
use the char, short, int, long types which are not guarantied to be of
corresponding length of vtk types.
1 parent a06ce18
History
Tip revision: fcbcaa969341a89842d8b03326543b6fcc5b13f6 authored by Lars Bilke on 19 September 2022, 11:21:24 UTC
6.4.3
Tip revision: fcbcaa9
File Mode Size
.hooks
Applications
BaseLib
ChemistryLib
Documentation
GeoLib
InfoLib
MaterialLib
MathLib
MeshGeoToolsLib
MeshLib
NumLib
ParameterLib
ProcessLib
Tests
ThirdParty
scripts
web
.clang-format -rw-r--r-- 397 bytes
.clang-tidy -rw-r--r-- 972 bytes
.cmake-format.yaml -rw-r--r-- 3.2 KB
.codeclimate.yml -rw-r--r-- 105 bytes
.codespellexclude -rw-r--r-- 802 bytes
.codespellrc -rw-r--r-- 199 bytes
.dockerignore -rw-r--r-- 57 bytes
.editorconfig -rw-r--r-- 226 bytes
.gitattributes -rw-r--r-- 297 bytes
.gitignore -rw-r--r-- 337 bytes
.gitlab-ci.yml -rw-r--r-- 1.9 KB
.gitmodules -rw-r--r-- 246 bytes
.mailmap -rw-r--r-- 1.8 KB
.pre-commit-config.yaml -rw-r--r-- 2.2 KB
CHANGELOG.md -rw-r--r-- 30.1 KB
CMakeLists.txt -rw-r--r-- 7.3 KB
CMakePresets.json -rw-r--r-- 6.4 KB
CODE_OF_CONDUCT.md -rw-r--r-- 3.3 KB
CONTRIBUTING.md -rw-r--r-- 460 bytes
LICENSE.txt -rw-r--r-- 1.5 KB
README.md -rw-r--r-- 1.7 KB
codecov.yml -rw-r--r-- 139 bytes
config-cpp-dependencies.txt -rw-r--r-- 3.2 KB

README.md

back to top