]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Instant. two functions with complex numbers.
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 11 Oct 2013 13:29:19 +0000 (13:29 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 11 Oct 2013 13:29:19 +0000 (13:29 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_petscscalar_complex@31204 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/constraint_matrix.cc
deal.II/source/lac/full_matrix.cc

index 4c1a7e8facb1f97ca923f106fe3aac5a8c1c8ff1..dcd6283967ba303cca37b5565f33d5da1a289090 100644 (file)
@@ -1875,4 +1875,10 @@ ONLY_MATRIX_FUNCTIONS(PETScWrappers::MPI::BlockSparseMatrix);
 
 #include "constraint_matrix.inst"
 
+// This is needed if PETSc was compiled with complex, though, it may
+// be used elsewhere too.
+#ifdef PETSC_USE_COMPLEX
+template void dealii::ConstraintMatrix::distribute<dealii::Vector<std::complex<double> > >(dealii::Vector<std::complex<double> >&) const;
+#endif // PETSC_USE_COMPLEX
+
 DEAL_II_NAMESPACE_CLOSE
index 92bab173773db563da1cf9579d07c4be2a996fd8..9ac45664ba4880a433a145a5d4b34da38a027eb8 100644 (file)
@@ -21,6 +21,12 @@ DEAL_II_NAMESPACE_OPEN
 
 #include "full_matrix.inst"
 
+// This is needed if PETSc was compiled with complex, though, it may
+// be used elsewhere too.
+//#ifdef PETSC_USE_COMPLEX
+template void dealii::FullMatrix<double>::vmult<std::complex<double> >(dealii::Vector<std::complex<double> >&, dealii::Vector<std::complex<double> > const&, bool) const;
+//#endif // PETSC_USE_COMPLEX
+
 // do a few functions that currently don't fit the scheme because they have
 // two template arguments that need to be different (the case of same
 // arguments is covered by the default copy constructor and copy operator that

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.