On 02/27/2016 12:31 PM, Astor Piaz wrote:
>
> What is the intended way to initialize a
> 'dealii::MGSmootherPrecondition<...,dealii::PreconditionBlockJacobi<...>,...>'
> object using'dealii::MGLevelObject<dealii::SparseMatrix<double> >' and 'class
> dealii::PreconditionBlock<...>::AdditionalData' objects?
The way you do it, but for that an AdditionalData member needs to be
accessible. Both of your workarounds work just fine in this regard.
You get in trouble because you use private inheritance, which is frequently a
mistake. Inheritance is used to indicate an "is a" relationship, in which case
it makes sense to derive publicly. Why do you want to derive privately?
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@math.tamu.edu
www:
http://www.math.tamu.edu/~bangerth/