On 4/1/19 7:05 AM, [email protected] wrote: > > Hey I just added my changes to a github branch ( > https://github.com/gabpeters/dealii/tree/sparsity ) > I changed the make_sparsity_pattern(dof_row,dor_col,sparsity) function > and also changed the header in the > dof_tools.h file and the signature in the dof_tools_sparsity.inst.in file. > But still I get the following error, when I compile my code: > > undefined reference to `void > dealii::DoFTools::make_sparsity_pattern<dealii::DoFHandler<3, 3>, > dealii::DynamicSparsityPattern>(dealii::DoFHandler<3, 3> const&, > dealii::DoFHandler<3, 3> > const&, dealii::DynamicSparsityPattern&, dealii::ConstraintMatrix > const&, bool)' > > Did I still forget to change any reference?
You probably forgot to add an explicit instantiation for your function. Take a look at the section on "Instantiation of template functions/classes" here: https://dealii.org/developer/doxygen/deal.II/CodingConventions.html Best W. -- ------------------------------------------------------------------------ Wolfgang Bangerth email: [email protected] www: http://www.math.colostate.edu/~bangerth/ -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
