From: Martin Kronbichler Date: Thu, 24 Sep 2015 05:04:57 +0000 (+0200) Subject: Add missing instantiations. X-Git-Tag: v8.4.0-rc2~373^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e0a9b0a4d0497b59c36e361d856796865019233;p=dealii.git Add missing instantiations. --- diff --git a/source/lac/sparse_matrix.cc b/source/lac/sparse_matrix.cc index 4db5f38645..ae675bbd13 100644 --- a/source/lac/sparse_matrix.cc +++ b/source/lac/sparse_matrix.cc @@ -15,6 +15,7 @@ #include #include +#include DEAL_II_NAMESPACE_OPEN diff --git a/source/lac/sparse_matrix.inst.in b/source/lac/sparse_matrix.inst.in index 950bf0dfba..dee0b31bf5 100644 --- a/source/lac/sparse_matrix.inst.in +++ b/source/lac/sparse_matrix.inst.in @@ -33,20 +33,20 @@ for (S1, S2 : REAL_SCALARS) void SparseMatrix::copy_from (const FullMatrix &); template void SparseMatrix::add (const S1, - const SparseMatrix &); + const SparseMatrix &); template void SparseMatrix::add (const size_type, - const size_type, - const size_type *, - const S2 *, - const bool, - const bool); + const size_type, + const size_type *, + const S2 *, + const bool, + const bool); template void SparseMatrix::set (const size_type, - const size_type, - const size_type *, - const S2 *, - const bool); + const size_type, + const size_type *, + const S2 *, + const bool); } @@ -59,69 +59,69 @@ for (S1, S2 : REAL_SCALARS) template S2 SparseMatrix:: matrix_scalar_product (const Vector &, - const Vector &) const; + const Vector &) const; template S2 SparseMatrix:: residual (Vector &, - const Vector &, - const Vector &) const; + const Vector &, + const Vector &) const; template void SparseMatrix:: precondition_SSOR (Vector &, - const Vector &, - const S1, - const std::vector&) const; + const Vector &, + const S1, + const std::vector&) const; template void SparseMatrix:: precondition_SOR (Vector &, - const Vector &, - const S1) const; + const Vector &, + const S1) const; template void SparseMatrix:: precondition_TSOR (Vector &, - const Vector &, - const S1) const; + const Vector &, + const S1) const; template void SparseMatrix:: precondition_Jacobi (Vector &, - const Vector &, - const S1) const; + const Vector &, + const S1) const; template void SparseMatrix:: SOR (Vector &, - const S1) const; + const S1) const; template void SparseMatrix:: TSOR (Vector &, - const S1) const; + const S1) const; template void SparseMatrix:: SSOR (Vector &, - const S1) const; + const S1) const; template void SparseMatrix:: PSOR (Vector &, - const std::vector&, - const std::vector&, - const S1) const; + const std::vector&, + const std::vector&, + const S1) const; template void SparseMatrix:: TPSOR (Vector &, - const std::vector&, - const std::vector&, - const S1) const; + const std::vector&, + const std::vector&, + const S1) const; template void SparseMatrix:: Jacobi_step (Vector &, - const Vector &, - const S1) const; + const Vector &, + const S1) const; template void SparseMatrix:: SOR_step (Vector &, - const Vector &, - const S1) const; + const Vector &, + const S1) const; template void SparseMatrix:: TSOR_step (Vector &, - const Vector &, - const S1) const; + const Vector &, + const S1) const; template void SparseMatrix:: SSOR_step (Vector &, - const Vector &, - const S1) const; + const Vector &, + const S1) const; } for (S1, S2, S3 : REAL_SCALARS; @@ -137,6 +137,18 @@ for (S1, S2, S3 : REAL_SCALARS; Tvmult_add (V1 &, const V2 &) const; } +for (S1 : REAL_SCALARS) + { + template void SparseMatrix:: + vmult (parallel::distributed::Vector &, const parallel::distributed::Vector &) const; + template void SparseMatrix:: + Tvmult (parallel::distributed::Vector &, const parallel::distributed::Vector &) const; + template void SparseMatrix:: + vmult_add (parallel::distributed::Vector &, const parallel::distributed::Vector &) const; + template void SparseMatrix:: + Tvmult_add (parallel::distributed::Vector &, const parallel::distributed::Vector &) const; + } + for (S1, S2, S3: REAL_SCALARS) { template void SparseMatrix:: @@ -144,7 +156,7 @@ for (S1, S2, S3: REAL_SCALARS) const bool) const; template void SparseMatrix:: Tmmult (SparseMatrix &, const SparseMatrix &, const Vector&, - const bool) const; + const bool) const; } @@ -167,20 +179,20 @@ for (S1, S2 : COMPLEX_SCALARS) void SparseMatrix::copy_from (const FullMatrix &); template void SparseMatrix::add (const S1, - const SparseMatrix &); + const SparseMatrix &); template void SparseMatrix::add (const size_type, - const size_type, - const size_type *, - const S2 *, - const bool, - const bool); + const size_type, + const size_type *, + const S2 *, + const bool, + const bool); template void SparseMatrix::set (const size_type, - const size_type, - const size_type *, - const S2 *, - const bool); + const size_type, + const size_type *, + const S2 *, + const bool); } @@ -193,69 +205,69 @@ for (S1, S2 : COMPLEX_SCALARS) template S2 SparseMatrix:: matrix_scalar_product (const Vector &, - const Vector &) const; + const Vector &) const; template S2 SparseMatrix:: residual (Vector &, - const Vector &, - const Vector &) const; + const Vector &, + const Vector &) const; template void SparseMatrix:: precondition_SSOR (Vector &, - const Vector &, - const S1, - const std::vector&) const; + const Vector &, + const S1, + const std::vector&) const; template void SparseMatrix:: precondition_SOR (Vector &, - const Vector &, - const S1) const; + const Vector &, + const S1) const; template void SparseMatrix:: precondition_TSOR (Vector &, - const Vector &, - const S1) const; + const Vector &, + const S1) const; template void SparseMatrix:: precondition_Jacobi (Vector &, - const Vector &, - const S1) const; + const Vector &, + const S1) const; template void SparseMatrix:: SOR (Vector &, - const S1) const; + const S1) const; template void SparseMatrix:: TSOR (Vector &, - const S1) const; + const S1) const; template void SparseMatrix:: SSOR (Vector &, - const S1) const; + const S1) const; template void SparseMatrix:: PSOR (Vector &, - const std::vector&, - const std::vector&, - const S1) const; + const std::vector&, + const std::vector&, + const S1) const; template void SparseMatrix:: TPSOR (Vector &, - const std::vector&, - const std::vector&, - const S1) const; + const std::vector&, + const std::vector&, + const S1) const; template void SparseMatrix:: Jacobi_step (Vector &, - const Vector &, - const S1) const; + const Vector &, + const S1) const; template void SparseMatrix:: SOR_step (Vector &, - const Vector &, - const S1) const; + const Vector &, + const S1) const; template void SparseMatrix:: TSOR_step (Vector &, - const Vector &, - const S1) const; + const Vector &, + const S1) const; template void SparseMatrix:: SSOR_step (Vector &, - const Vector &, - const S1) const; + const Vector &, + const S1) const; } for (S1, S2, S3 : COMPLEX_SCALARS; @@ -278,5 +290,5 @@ for (S1, S2, S3: COMPLEX_SCALARS) const bool) const; template void SparseMatrix:: Tmmult (SparseMatrix &, const SparseMatrix &, const Vector&, - const bool) const; + const bool) const; } diff --git a/source/lac/sparse_matrix_inst2.cc b/source/lac/sparse_matrix_inst2.cc index aaa7275f92..44107ffcce 100644 --- a/source/lac/sparse_matrix_inst2.cc +++ b/source/lac/sparse_matrix_inst2.cc @@ -16,6 +16,7 @@ #include #include +#include DEAL_II_NAMESPACE_OPEN