]> https://gitweb.dealii.org/ - dealii.git/commitdiff
lac: remove scratch_data_initializer from constraint_matrix.cc
authorMatthias Maier <tamiko@43-1.org>
Thu, 24 May 2018 19:27:49 +0000 (14:27 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 6 Jun 2018 15:19:38 +0000 (10:19 -0500)
source/lac/constraint_matrix.cc

index 9ea0738e02606264cbfe3488ee3c3140b911ba8b..76c8202b4f139bc589127b4e67a7fd2929d3c991 100644 (file)
@@ -1614,29 +1614,4 @@ ONLY_MATRIX_FUNCTIONS(PETScWrappers::MPI::BlockSparseMatrix);
 
 #include "constraint_matrix.inst"
 
-// allocate scratch data. Cannot use the generic template instantiation
-// because we need to provide an initializer object of type
-// internals::ConstraintMatrixData<Number> that can be passed to the
-// constructor of scratch_data (it won't allow one to be constructed in place).
-namespace internals
-{
-#define SCRATCH_INITIALIZER(MatrixScalar, VectorScalar, 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)
-
-  SCRATCH_INITIALIZER(double, double, dd);
-  SCRATCH_INITIALIZER(float, float, ff);
-  SCRATCH_INITIALIZER(std::complex<double>, std::complex<double>, zz);
-  SCRATCH_INITIALIZER(std::complex<float>, std::complex<float>, cc);
-  SCRATCH_INITIALIZER(double, std::complex<double>, dz);
-  SCRATCH_INITIALIZER(float, std::complex<float>, fc);
-#undef SCRATCH_INITIALIZER
-} // namespace internals
-
-
 DEAL_II_NAMESPACE_CLOSE

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.