]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark a few file-specific variables as static.
authorDavid Wells <wellsd2@rpi.edu>
Fri, 4 May 2018 00:29:15 +0000 (20:29 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Fri, 4 May 2018 01:25:01 +0000 (21:25 -0400)
source/base/exceptions.cc
source/lac/constraint_matrix.cc

index 4e3873f1d3925a8069983a1f41d0d0eea08554da..ac83e72a923675c256da50b9b5b812009d203a1a 100644 (file)
@@ -42,21 +42,21 @@ DEAL_II_NAMESPACE_OPEN
 namespace deal_II_exceptions
 {
 
-  std::string additional_assert_output;
+  static std::string additional_assert_output;
 
   void set_additional_assert_output (const char *const p)
   {
     additional_assert_output = p;
   }
 
-  bool show_stacktrace = true;
+  static bool show_stacktrace = true;
 
   void suppress_stacktrace_in_exceptions ()
   {
     show_stacktrace = false;
   }
 
-  bool abort_on_exception = true;
+  static bool abort_on_exception = true;
 
   void disable_abort_on_exception ()
   {
index e17c372269452f19310d4143383540c9774a0279..5cd0e16dd60ce1fdf5fcf77a462fd49ae4cf569c 100644 (file)
@@ -1475,7 +1475,7 @@ ONLY_MATRIX_FUNCTIONS(PETScWrappers::MPI::BlockSparseMatrix);
 namespace internals
 {
 #define SCRATCH_INITIALIZER(MatrixScalar,VectorScalar,Name)                  \
-  ConstraintMatrixData<MatrixScalar,VectorScalar>::ScratchData scratch_data_initializer_##Name; \
+  static 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.