Hey All,

I'm trying to use the ConstraintMatrix::distribute_local_to_global defined
as:

void ConstraintMatrix::distribute_local_to_global ( const
FullMatrix<http://www.dealii.org/developer/doxygen/deal.II/classFullMatrix.html><
double > &  *local_matrix*,

const std::vector< unsigned int > &  *row_indices*,

const std::vector< unsigned int > &  *col_indices*,

MatrixType &  *global_matrix*
)
const
very similar to how it is used in step-46; however, I am trying to use it
for MatrixType of BlockSparseMatrix<double>.

I am getting the following error:

undefined reference to `void
dealii::ConstraintMatrix::distribute_local_to_global<dealii::BlockSparseMatrix<double>
>(dealii::FullMatrix<double> const&, std::vector<unsigned int,
std::allocator<unsigned int> > const&, std::vector<unsigned int,
std::allocator<unsigned int> > const&, dealii::BlockSparseMatrix<double>&)
const'

I believe it is not being instantiated properly, though I'm not completely
sure.  Normally I would edit the .inst.in file, but this instantiation is
generated using perl and I don't know the language.

I think the constraint_matrix.inst.pl file needs to generate the following
into the constraint_matrix.inst, but I don't know how to add it:

template void
ConstraintMatrix::distribute_local_to_global<BlockSparseMatrix<double>  > (
    const FullMatrix< double >&, const std::vector< unsigned int > &, const
std::vector< unsigned int > &, const BlockSparseMatrix<double> &)     const;

Assistance would be appreciated, thanks.

-- 
-Jason Sheldon
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to