Dear Katie, you wrote some emails before, that you've copied one of the constraint_matrix source or header file. Maybe this could be the error.
I think you should do a "clean" (or in other words new) checkout of deal.II and doing the ./configure --what you need (Trilinos I think?) make make all thing to have the library clean. What I ment in the last mail was a make clean/cleanall in your project folder (I got some linker errors because the Makefile.dep wasn't rebuilded after changing the deal.II path). Best Uwe On Mon, 2012-02-20 at 15:16 +0000, Katie Leonard wrote: > Dear Timo and Uwe, > > I am getting a string of errors associated with constraint_matrix files when > I run "./reconfigure && make clean && make all" after doing the svn checkout. > I have pasted these below (long!) > > Any idea of what I need to do to fix this would be really great! > > Many thanks > > Katie Leonard > > > > In file included from > /home/katie/deal.II/source/lac/constraint_matrix.cc:15:0: > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.templates.h:2199:1: > error: prototype for ‘void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, MatrixType&, VectorType&, bool, > dealii::internal::bool2type<false>) const’ does not match any in class > ‘dealii::ConstraintMatrix’ > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.h:1670:5: error: > candidates are: template<class MatrixType, class VectorType> void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, MatrixType&, VectorType&, > dealii::internal::bool2type<true>) const > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.h:1656:5: error: > template<class MatrixType, class VectorType> void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, MatrixType&, VectorType&, > dealii::internal::bool2type<false>) const > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.h:1183:5: error: > template<class MatrixType, class VectorType> void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, MatrixType&, VectorType&) const > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.h:1162:5: error: > template<class MatrixType> void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const std::vector<unsigned int>&, const > std::vector<unsigned int>&, MatrixType&) const > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.h:1151:5: error: > template<class MatrixType> void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const std::vector<unsigned int>&, MatrixType&) > const > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.h:1077:5: error: > template<class ForwardIteratorVec, class ForwardIteratorInd, > class VectorType> void > dealii::ConstraintMatrix::distribute_local_to_global(ForwardIteratorVec, > ForwardIteratorVec, ForwardIteratorInd, VectorType&) const > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.h:1027:5: error: > template<class VectorType> void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::Vector<double>&, const std::vector<unsigned int>&, VectorType&, const > dealii::FullMatrix<double>&) const > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.h:950:5: error: > template<class InVector, class OutVector> void > dealii::ConstraintMatrix::distribute_local_to_global(const InVector&, const > std::vector<unsigned int>&, OutVector&) const > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.templates.h:2361:1: > error: prototype for ‘void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, MatrixType&, VectorType&, bool, > dealii::internal::bool2type<true>) const’ does not match any in class > ‘dealii::ConstraintMatrix’ > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.h:1670:5: error: > candidates are: template<class MatrixType, class VectorType> void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, MatrixType&, VectorType&, > dealii::internal::bool2type<true>) const > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.h:1656:5: error: > template<class MatrixType, class VectorType> void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, MatrixType&, VectorType&, > dealii::internal::bool2type<false>) const > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.h:1183:5: error: > template<class MatrixType, class VectorType> void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, MatrixType&, VectorType&) const > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.h:1162:5: error: > template<class MatrixType> void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const std::vector<unsigned int>&, const > std::vector<unsigned int>&, MatrixType&) const > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.h:1151:5: error: > template<class MatrixType> void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const std::vector<unsigned int>&, MatrixType&) > const > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.h:1077:5: error: > template<class ForwardIteratorVec, class ForwardIteratorInd, > class VectorType> void > dealii::ConstraintMatrix::distribute_local_to_global(ForwardIteratorVec, > ForwardIteratorVec, ForwardIteratorInd, VectorType&) const > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.h:1027:5: error: > template<class VectorType> void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::Vector<double>&, const std::vector<unsigned int>&, VectorType&, const > dealii::FullMatrix<double>&) const > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.h:950:5: error: > template<class InVector, class OutVector> void > dealii::ConstraintMatrix::distribute_local_to_global(const InVector&, const > std::vector<unsigned int>&, OutVector&) const > /home/katie/deal.II/source/lac/constraint_matrix.cc:2332:1: error: > template-id ‘distribute_local_to_global<dealii::SparseMatrix<double>, > dealii::Vector<double> >’ for ‘void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, dealii::SparseMatrix<double>&, > dealii::Vector<double>&, bool, dealii::internal::bool2type<false>) const’ > does not match any template declaration > /home/katie/deal.II/source/lac/constraint_matrix.cc:2333:1: error: > template-id ‘distribute_local_to_global<dealii::SparseMatrix<float>, > dealii::Vector<double> >’ for ‘void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, dealii::SparseMatrix<float>&, > dealii::Vector<double>&, bool, dealii::internal::bool2type<false>) const’ > does not match any template declaration > /home/katie/deal.II/source/lac/constraint_matrix.cc:2334:1: error: > template-id ‘distribute_local_to_global<dealii::SparseMatrix<float>, > dealii::Vector<float> >’ for ‘void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, dealii::SparseMatrix<float>&, > dealii::Vector<float>&, bool, dealii::internal::bool2type<false>) const’ does > not match any template declaration > /home/katie/deal.II/source/lac/constraint_matrix.cc:2336:1: error: > template-id ‘distribute_local_to_global<dealii::BlockSparseMatrix<double>, > dealii::Vector<double> >’ for ‘void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, dealii::BlockSparseMatrix<double>&, > dealii::Vector<double>&, bool, dealii::internal::bool2type<true>) const’ does > not match any template declaration > /home/katie/deal.II/source/lac/constraint_matrix.cc:2337:1: error: > template-id ‘distribute_local_to_global<dealii::BlockSparseMatrix<float>, > dealii::Vector<double> >’ for ‘void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, dealii::BlockSparseMatrix<float>&, > dealii::Vector<double>&, bool, dealii::internal::bool2type<true>) const’ does > not match any template declaration > /home/katie/deal.II/source/lac/constraint_matrix.cc:2338:1: error: > template-id ‘distribute_local_to_global<dealii::BlockSparseMatrix<double>, > dealii::BlockVector<double> >’ for ‘void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, dealii::BlockSparseMatrix<double>&, > dealii::BlockVector<double>&, bool, dealii::internal::bool2type<true>) const’ > does not match any template declaration > /home/katie/deal.II/source/lac/constraint_matrix.cc:2339:1: error: > template-id ‘distribute_local_to_global<dealii::BlockSparseMatrix<float>, > dealii::BlockVector<float> >’ for ‘void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, dealii::BlockSparseMatrix<float>&, > dealii::BlockVector<float>&, bool, dealii::internal::bool2type<true>) const’ > does not match any template declaration > /home/katie/deal.II/source/lac/constraint_matrix.cc:2340:1: error: > template-id ‘distribute_local_to_global<dealii::BlockSparseMatrix<float>, > dealii::BlockVector<double> >’ for ‘void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, dealii::BlockSparseMatrix<float>&, > dealii::BlockVector<double>&, bool, dealii::internal::bool2type<true>) const’ > does not match any template declaration > /home/katie/deal.II/source/lac/constraint_matrix.cc:2342:1: error: > template-id ‘distribute_local_to_global<dealii::SparseMatrixEZ<double>, > dealii::Vector<double> >’ for ‘void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, dealii::SparseMatrixEZ<double>&, > dealii::Vector<double>&, bool, dealii::internal::bool2type<false>) const’ > does not match any template declaration > /home/katie/deal.II/source/lac/constraint_matrix.cc:2343:1: error: > template-id ‘distribute_local_to_global<dealii::SparseMatrixEZ<float>, > dealii::Vector<double> >’ for ‘void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, dealii::SparseMatrixEZ<float>&, > dealii::Vector<double>&, bool, dealii::internal::bool2type<false>) const’ > does not match any template declaration > /home/katie/deal.II/source/lac/constraint_matrix.cc:2344:1: error: > template-id ‘distribute_local_to_global<dealii::SparseMatrixEZ<float>, > dealii::Vector<float> >’ for ‘void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, dealii::SparseMatrixEZ<float>&, > dealii::Vector<float>&, bool, dealii::internal::bool2type<false>) const’ does > not match any template declaration > /home/katie/deal.II/source/lac/constraint_matrix.cc:2361:1: error: > template-id > ‘distribute_local_to_global<dealii::TrilinosWrappers::SparseMatrix, > dealii::Vector<double> >’ for ‘void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, dealii::TrilinosWrappers::SparseMatrix&, > dealii::Vector<double>&, bool, dealii::internal::bool2type<false>) const’ > does not match any template declaration > /home/katie/deal.II/source/lac/constraint_matrix.cc:2362:1: error: > template-id > ‘distribute_local_to_global<dealii::TrilinosWrappers::BlockSparseMatrix, > dealii::Vector<double> >’ for ‘void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, dealii::TrilinosWrappers::BlockSparseMatrix&, > dealii::Vector<double>&, bool, dealii::internal::bool2type<true>) const’ does > not match any template declaration > /home/katie/deal.II/source/lac/constraint_matrix.cc:2363:1: error: > template-id > ‘distribute_local_to_global<dealii::TrilinosWrappers::SparseMatrix, > dealii::TrilinosWrappers::Vector>’ for ‘void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, dealii::TrilinosWrappers::SparseMatrix&, > dealii::TrilinosWrappers::Vector&, bool, dealii::internal::bool2type<false>) > const’ does not match any template declaration > /home/katie/deal.II/source/lac/constraint_matrix.cc:2364:1: error: > template-id > ‘distribute_local_to_global<dealii::TrilinosWrappers::BlockSparseMatrix, > dealii::TrilinosWrappers::BlockVector>’ for ‘void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, dealii::TrilinosWrappers::BlockSparseMatrix&, > dealii::TrilinosWrappers::BlockVector&, bool, > dealii::internal::bool2type<true>) const’ does not match any template > declaration > /home/katie/deal.II/source/lac/constraint_matrix.cc:2365:1: error: > template-id > ‘distribute_local_to_global<dealii::TrilinosWrappers::SparseMatrix, > dealii::TrilinosWrappers::MPI::Vector>’ for ‘void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, dealii::TrilinosWrappers::SparseMatrix&, > dealii::TrilinosWrappers::MPI::Vector&, bool, > dealii::internal::bool2type<false>) const’ does not match any template > declaration > /home/katie/deal.II/source/lac/constraint_matrix.cc:2366:1: error: > template-id > ‘distribute_local_to_global<dealii::TrilinosWrappers::BlockSparseMatrix, > dealii::TrilinosWrappers::MPI::BlockVector>’ for ‘void > dealii::ConstraintMatrix::distribute_local_to_global(const > dealii::FullMatrix<double>&, const dealii::Vector<double>&, const > std::vector<unsigned int>&, dealii::TrilinosWrappers::BlockSparseMatrix&, > dealii::TrilinosWrappers::MPI::BlockVector&, bool, > dealii::internal::bool2type<true>) const’ does not match any template > declaration > make[1]: *** [/home/katie/deal.II/lib/debug/lac_constraint_matrix.o] Error 1 > make[1]: Leaving directory `/home/katie/deal.II/source' > make: *** [debug] Error 2 > > DPhil student in Computational Biology, > The University of Oxford. > ________________________________________ > From: Timo Heister [[email protected]] > Sent: 20 February 2012 03:58 > To: Katie Leonard > Cc: [email protected] > Subject: Re: [deal.II] Checkout through Svn now giving a compile error for > DoFTools::count_dofs_per_block > > Hi Katie, > > do the steps included in the deal svn compile correctly for you? For > me they do right now. If not, you might need to "./reconfigure && make > clean && make all". > > Let us know if that didn't help. > > On Sun, Feb 19, 2012 at 6:16 PM, Katie Leonard > <[email protected]> wrote: > > Hi, > > > > I have just done a svn checkout to get some changes made since the last > > version was released. I have just compiled some of my code that worked > > fine before the checkout, and I got an error that I'm not sure how to fix! > > The error output is: > > > > undefined reference to `void > > dealii::DoFTools::count_dofs_per_block<dealii::DoFHandler<2, 2> > > >(dealii::DoFHandler<2, 2> const&, std::vector<unsigned int, > > std::allocator<unsigned int> >&, std::vector<unsigned int, > > std::allocator<unsigned int> >)' > > collect2: ld returned 1 exit status > > make: *** [step-31] Error 1 > > > > > > If someone could give me an idea of where the error may be originating > > from, that would be really helpful :) > > > > > > There was also a problem with the file > > deal.II/include/deal.II/lac/constraint_matrix.h which I fixed by reverting > > to the original (I have pasted the error message for that below, just in > > case anyone is interested!) > > > > Hope I've posted this to the correct list - please do excuse me if I > > haven't! > > > > Thanks, > > > > Katie Leonard > > > > > > error message with svn version of > > deal.II/include/deal.II/lac/constraint_matrix.h : > > > > void > > dealii::ConstraintMatrix::distribute_local_to_global<dealii::TrilinosWrappers::BlockSparseMatrix, > > dealii::TrilinosWrappers::BlockVector>(dealii::FullMatrix<double> const&, > > dealii::Vector<double> const&, std::vector<unsigned int, > > std::allocator<unsigned int> > const&, > > dealii::TrilinosWrappers::BlockSparseMatrix&, > > dealii::TrilinosWrappers::BlockVector&, bool) const': > > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.h:2076: undefined > > reference to `void > > dealii::ConstraintMatrix::distribute_local_to_global<dealii::TrilinosWrappers::BlockSparseMatrix, > > dealii::TrilinosWrappers::BlockVector>(dealii::FullMatrix<double> const&, > > dealii::Vector<double> const&, std::vector<unsigned int, > > std::allocator<unsigned int> > const&, > > dealii::TrilinosWrappers::BlockSparseMatrix&, > > dealii::TrilinosWrappers::BlockVector&, bool, > > dealii::internal::bool2type<true>) const' > > step-31.g.o: In function `void > > dealii::ConstraintMatrix::distribute_local_to_global<dealii::TrilinosWrappers::BlockSparseMatrix>(dealii::FullMatrix<double> > > const&, std::vector<unsigned int, std::allocator<unsigned int> > const&, > > dealii::TrilinosWrappers::BlockSparseMatrix&) const': > > /home/katie/deal.II/include/deal.II/lac/constraint_matrix.h:2054: undefined > > reference to `void > > dealii::ConstraintMatrix::distribute_local_to_global<dealii::TrilinosWrappers::BlockSparseMatrix, > > dealii::Vector<double> >(dealii::FullMatrix<double> const&, > > dealii::Vector<double> const&, std::vector<unsigned int, > > std::allocator<unsigned int> > const&, > > dealii::TrilinosWrappers::BlockSparseMatrix&, dealii::Vector<double>&, > > bool, dealii::internal::bool2type<true>) const' > > > > > > > > > > > > > > DPhil student in Computational Biology, > > The University of Oxford. > > _______________________________________________ > > dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii > > > > -- > Timo Heister > http://www.math.tamu.edu/~heister/ _______________________________________________ dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
