Can't use a tupledf with petsc df
.../dune/fem/function/tuplediscretefunction/dofvector.hh:198:18: error: taking address of temporary [-fpermissive]
return &std::get< i >( *this )
[ index / thisBlockSize ][ index % thisBlockSize ];
The problem is in PetscVector
:
DofBlockType operator[] ( const IndexType index ) { return DofBlockType( *this,index ); }
which generates a temporary.
I have a failing example in dune-fempy - I'll try to get a test to fail in dune-fem