https://gitlab.opengeosys.org/ogs/ogs.git
Revision a27c19f178b8e1e29937c7fafc936bb48e1fd321 authored by Dmitri Naumov on 31 October 2021, 17:06:19 UTC, committed by Dmitri Naumov on 31 October 2021, 21:57:22 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 b136ef3
History
Tip revision: a27c19f178b8e1e29937c7fafc936bb48e1fd321 authored by Dmitri Naumov on 31 October 2021, 17:06:19 UTC
[MeL/VTK] Safely convert all (u)int8-64 bits types
Tip revision: a27c19f
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