On 11/9/20 2:49 PM, Daniel Arndt wrote:
>
> Undefined symbols for architecture x86_64:
> "dealii::PETScWrappers::SparseMatrix::SparseMatrix<int>(int const&, bool)",
> referenced from:
There is no such function -- the linker tells you that, but it's unclear to me
how it is referenced in test::Operator::Operator(int const &).
I think that what is happening is that you are trying to call
template <typename SparsityPatternType>
explicit SparseMatrix(const SparsityPatternType &sparsity_pattern,
const bool preset_nonzero_locations = true);
with an int instead of a sparsity pattern as first argument. That's not going
to work.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/