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=e515211a07bf227336f7c2e391bbee6d73ceacf8;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(); }