From 74a8f79feb0cb513a4dd2d144aaecc77b12938eb Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 4 May 2018 12:46:23 -0400 Subject: [PATCH] Revert "Mark a few file-specific variables as static." This reverts commit 28611bfaf785b9459fc2c7259e31fb097496e24b. tests.h adds is own extern declaration to access variables declared in exceptions.cc, so they cannot be static. --- source/base/exceptions.cc | 6 +++--- source/lac/constraint_matrix.cc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/base/exceptions.cc b/source/base/exceptions.cc index ac83e72a92..4e3873f1d3 100644 --- a/source/base/exceptions.cc +++ b/source/base/exceptions.cc @@ -42,21 +42,21 @@ DEAL_II_NAMESPACE_OPEN namespace deal_II_exceptions { - static std::string additional_assert_output; + std::string additional_assert_output; void set_additional_assert_output (const char *const p) { additional_assert_output = p; } - static bool show_stacktrace = true; + bool show_stacktrace = true; void suppress_stacktrace_in_exceptions () { show_stacktrace = false; } - static bool abort_on_exception = true; + bool abort_on_exception = true; void disable_abort_on_exception () { diff --git a/source/lac/constraint_matrix.cc b/source/lac/constraint_matrix.cc index 5cd0e16dd6..e17c372269 100644 --- a/source/lac/constraint_matrix.cc +++ b/source/lac/constraint_matrix.cc @@ -1475,7 +1475,7 @@ ONLY_MATRIX_FUNCTIONS(PETScWrappers::MPI::BlockSparseMatrix); namespace internals { #define SCRATCH_INITIALIZER(MatrixScalar,VectorScalar,Name) \ - static ConstraintMatrixData::ScratchData scratch_data_initializer_##Name; \ + ConstraintMatrixData::ScratchData scratch_data_initializer_##Name; \ template <> Threads::ThreadLocalStorage::ScratchData> \ ConstraintMatrixData::scratch_data(scratch_data_initializer_##Name) -- 2.39.5