From: Bruno Turcksin Date: Tue, 7 Feb 2023 02:40:44 +0000 (-0500) Subject: Don't use static variables in tests X-Git-Tag: v9.5.0-rc1~581^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14763%2Fhead;p=dealii.git Don't use static variables in tests --- diff --git a/tests/lac/parallel_vector_22.cc b/tests/lac/parallel_vector_22.cc index cfde38daf6..0e2a3bac57 100644 --- a/tests/lac/parallel_vector_22.cc +++ b/tests/lac/parallel_vector_22.cc @@ -31,7 +31,7 @@ template double print_value(Number *values_dev, unsigned int index) { - static Kokkos::View cpu_value("cpu_value"); + Kokkos::View cpu_value("cpu_value"); Kokkos::deep_copy(cpu_value, Kokkos::View(values_dev + index)); return cpu_value(); } diff --git a/tests/lac/parallel_vector_23.cc b/tests/lac/parallel_vector_23.cc index 064e50e712..001c650914 100644 --- a/tests/lac/parallel_vector_23.cc +++ b/tests/lac/parallel_vector_23.cc @@ -32,7 +32,7 @@ template double print_value(Number *values_dev, unsigned int index) { - static Kokkos::View cpu_value("cpu_value"); + Kokkos::View cpu_value("cpu_value"); Kokkos::deep_copy(cpu_value, Kokkos::View(values_dev + index)); return cpu_value(); }