Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1120,8 +1120,7 @@ endif()
################################
if( ENABLE_VTK )
set( VTK_DIR "${CMAKE_INSTALL_PREFIX}/vtk" )
set( VTK_URL "${TPL_MIRROR_DIR}/VTK-9.4.2.tar.gz" )

set( VTK_URL "${TPL_MIRROR_DIR}/VTK-v9.6.0.tar.gz" )
message( STATUS "Building VTK found at ${VTK_URL}" )

# Depending on the platform, the install directory could be 'lib' or 'lib64'.
Expand Down
2 changes: 1 addition & 1 deletion scripts/spack_packages/packages/geosx/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class Geosx(CMakePackage, CudaPackage, ROCmPackage):
depends_on('pugixml@1.13 ~shared')

depends_on('fmt@10.0.0 cxxstd=14')
depends_on('vtk@9.4.2', when='+vtk')
depends_on('vtk@9.6.0', when='+vtk')

#
# Math
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- a/IO/CellGrid/vtkCellGridReader.cxx 2025-03-27 23:59:55
+++ b/IO/CellGrid/vtkCellGridReader.cxx 2025-04-15 13:17:03
@@ -419,7 +419,10 @@
// The final "false" below allows the data to not be fully consumed,
// which may happen if sizeof(istream::char_type) > 1. In the future,
// it may also happen that a file contains multiple JSON streams.
- jj = nlohmann::json::from_msgpack(data.begin(), data.end(), false);
+
+ char const * const begin = reinterpret_cast<const char*>(data.data());
+ char const * const end = begin + data.size();
+ jj = nlohmann::json::from_msgpack(begin, end, false);
}
catch (...)
{
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- a/IO/Legacy/vtkLegacyCellGridReader.cxx 2025-03-27 23:59:55
+++ b/IO/Legacy/vtkLegacyCellGridReader.cxx 2025-04-15 13:28:24
@@ -116,7 +116,10 @@
// The final argument (false) indicates that the decoder should allow
// partial consumption of raw.data() (meaning the trailing newline will
// not cause an exception):
- jdata = nlohmann::json::from_msgpack(raw.data(), raw.data() + contentLength, false);
+
+ char const * const begin = reinterpret_cast<const char*>(raw.data());
+ char const * const end = begin + contentLength;
+ jdata = nlohmann::json::from_msgpack(begin, end, false);
}
catch (nlohmann::json::exception& e)
{
10 changes: 6 additions & 4 deletions scripts/spack_packages/packages/vtk/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ class Vtk(CMakePackage):
processing and visualization. """

homepage = "http://www.vtk.org"
url = "https://www.vtk.org/files/release/9.4/VTK-9.4.2.tar.gz"
#url = "https://www.vtk.org/files/release/9.4/VTK-9.4.2.tar.gz"
git = "https://gitlab.kitware.com/vtk/vtk.git"
list_url = "http://www.vtk.org/download/"

maintainers = ['chuckatkins', 'danlipsa']

version("9.4.2", sha256="36c98e0da96bb12a30fe53708097aa9492e7b66d5c3b366e1c8dc251e2856a02", preferred=True)
version("9.6.0", tag="v9.6.0", branch="master", get_full_repo=True)
version("9.4.2", sha256="36c98e0da96bb12a30fe53708097aa9492e7b66d5c3b366e1c8dc251e2856a02")
version("9.3.1", sha256="8354ec084ea0d2dc3d23dbe4243823c4bfc270382d0ce8d658939fd50061cab8")
version("9.2.6", sha256="06fc8d49c4e56f498c40fcb38a563ed8d4ec31358d0101e8988f0bb4d539dd12")
version('9.1.0', sha256='8fed42f4f8f1eb8083107b68eaa9ad71da07110161a3116ad807f43e5ca5ce96')
Expand Down Expand Up @@ -57,12 +59,12 @@ class Vtk(CMakePackage):
depends_on('mpi', when='+mpi')


patch_dir = os.path.join(os.path.dirname(__file__), '9.4.2-patch')
patch_dir = os.path.join(os.path.dirname(__file__), '9.6.0-patch')
if os.path.isdir(patch_dir):
for fname in sorted(os.listdir(patch_dir)):
full_path = os.path.join(patch_dir, fname)
if fname.endswith('.patch') and os.path.isfile(full_path):
patch(os.path.join('9.4.2-patch', fname), when='@9.4.2')
patch(os.path.join('9.6.0-patch', fname), when='@9.6.0')

def cmake_args(self):
spec = self.spec
Expand Down
3 changes: 0 additions & 3 deletions tplMirror/VTK-9.4.2.tar.gz

This file was deleted.

3 changes: 3 additions & 0 deletions tplMirror/vtk-v9.6.0.tar.gz
Git LFS file not shown