trilinos: patch stk to include cstddef for size_t error (#49952)

* trilinos: patch stk to include cstddef for size_t error

* Update comment.
This commit is contained in:
Jon Rood 2025-04-08 14:02:41 -06:00 committed by GitHub
parent b74e23a637
commit 4cb64e150f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,19 @@
diff --git a/packages/stk/stk_util/stk_util/parallel/ReceiveCounter.hpp b/packages/stk/stk_util/stk_util/parallel/ReceiveCounter.hpp
index ad1232b5bf7..daf3329969b 100644
--- a/packages/stk/stk_util/stk_util/parallel/ReceiveCounter.hpp
+++ b/packages/stk/stk_util/stk_util/parallel/ReceiveCounter.hpp
@@ -36,6 +36,7 @@
#define stk_util_parallel_ReceiveCounter_hpp
#include <vector>
+#include <cstddef>
#include "stk_util/parallel/Parallel.hpp" // for MPI
@@ -92,4 +93,4 @@ std::vector<int> get_send_counts(std::vector< std::vector<T> > sendLists, size_
}
} // namespace
-#endif
\ No newline at end of file
+#endif

View File

@ -559,6 +559,10 @@ class Trilinos(CMakePackage, CudaPackage, ROCmPackage):
# https://github.com/trilinos/Trilinos/pull/13921
patch("16-1-0-stk-fpe-exceptions.patch", when="@=16.1.0 +stk platform=darwin")
# https://github.com/trilinos/Trilinos/issues/13916 and
# https://github.com/trilinos/Trilinos/pull/13921
patch("16-1-0-stk-size_t.patch", when="@=16.1.0 +stk")
def flag_handler(self, name, flags):
spec = self.spec
is_cce = spec.satisfies("%cce")