]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Revert "Mark a few file-specific variables as static." 6450/head
authorDavid Wells <wellsd2@rpi.edu>
Fri, 4 May 2018 16:46:23 +0000 (12:46 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Fri, 4 May 2018 16:46:23 +0000 (12:46 -0400)
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
source/lac/constraint_matrix.cc

index ac83e72a923675c256da50b9b5b812009d203a1a..4e3873f1d3925a8069983a1f41d0d0eea08554da 100644 (file)
@@ -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 ()
   {
index 5cd0e16dd60ce1fdf5fcf77a462fd49ae4cf569c..e17c372269452f19310d4143383540c9774a0279 100644 (file)
@@ -1475,7 +1475,7 @@ ONLY_MATRIX_FUNCTIONS(PETScWrappers::MPI::BlockSparseMatrix);
 namespace internals
 {
 #define SCRATCH_INITIALIZER(MatrixScalar,VectorScalar,Name)                  \
-  static ConstraintMatrixData<MatrixScalar,VectorScalar>::ScratchData scratch_data_initializer_##Name; \
+  ConstraintMatrixData<MatrixScalar,VectorScalar>::ScratchData scratch_data_initializer_##Name; \
   template <> Threads::ThreadLocalStorage<ConstraintMatrixData<MatrixScalar,VectorScalar>::ScratchData> \
   ConstraintMatrixData<MatrixScalar,VectorScalar>::scratch_data(scratch_data_initializer_##Name)
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.