On 10/25/2017 06:43 PM, Michael wrote:
> /home/superman/software/dealii-8.5.0/include/deal.II/lac/chunk_sparse_matrix.templates.h: In instantiation of ‘somenumber dealii::ChunkSparseMatrix<number>::matrix_norm_square(const dealii::Vector<somenumber>&) const [with somenumber = double; number = double]’:
> /home/superman/software/dealii-8.5.0/build/source/lac/chunk_sparse_matrix.inst:64:58: required from here
> /home/superman/software/dealii-8.5.0/include/deal.II/lac/chunk_sparse_matrix.templates.h:856:56: error: cannot convert ‘const std::unique_ptr<unsigned int []>’ to ‘const size_type* {aka const unsigned int*}’ in initialization
> const size_type *colnum_ptr = cols->sparsity_pattern.colnums;
> ^~~~~~~
Something is rather messed up here. colnums is a std::unique_ptr, but has only
been since July 17. But in the same commit that changed colnums to a
unique_ptr, I also changed the line in question to
const size_type *colnum_ptr = cols->sparsity_pattern.colnums.get();
In other words, the files
include/deal.II/lac/sparsity_pattern.h
include/deal.II/lac/chunk_sparse_matrix.templates.h
in your tree are not both at the same state -- one appears to be a development
version from after July 17, the other one from before.
Something must have gotten out of whack when you updated from github. Try
again with a clean directory.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/