[dune-pdelab] [dune-pdelab-commit] dune-pdelab r471 - trunk/dune/pdelab/gridfunctionspace
Bernd Flemisch
bernd at iws.uni-stuttgart.de
Mon May 17 19:19:02 CEST 2010
Hey Christian,
On 05/17/2010 06:49 PM, Christian Engwer wrote:
> Hi Bernd,
>
>
>> I managed to do a specialization
>> template<typename T, int k>
>> class PowerGridFunctionSpaceBase<T,k,GridFunctionSpaceBlockwiseMapper >
>> which works for me.
>>
>> I had to change the setup function from private to protected in order to
>> make it work. I don't know if this is acceptable.
>>
>> I attach a patch to gridfunctionspace.hh. Maybe you can have a look.
>>
> I don't quite understand what this changes :-( actually the definition
> GridFunctionSpaceBlockwiseMapper<> should have had the same
> behaviour. Furthermore this will not work for composity functionspaces.
>
I would also think so.
>
>> + template<typename T, int k>
>> + class PowerGridFunctionSpaceBase<T,k,GridFunctionSpaceBlockwiseMapper >
>> + : public PowerGridFunctionSpaceBase<T,k,GridFunctionSpaceComponentBlockwiseMapper<1> >
>> + {};
>>
> I would be really glad to have test program. Do you know any program
> in the howto that fails?!
>
I found one which does not really fail, but which shows that the
specialization is not entered. Try
make dnapl
./dnapl 0 1 1 1
In the current svn version, only the general
template<typename T, int k, typename P>
class PowerGridFunctionSpaceBase
is used, while with the proposed addition the correct specialization
template<typename T, int k, int s>
class
PowerGridFunctionSpaceBase<T,k,GridFunctionSpaceComponentBlockwiseMapper<s>
>
is used.
But I do not know why it does not do so in the first place.
Kind regards
Bernd
> Christian
>
>
--
_____________________________________________________________________
Bernd Flemisch phone: +49 711 685 69162
IWS, Universität Stuttgart fax: +49 711 685 60430
Pfaffenwaldring 61 email: bernd at iws.uni-stuttgart.de
D-70569 Stuttgart url: www.hydrosys.uni-stuttgart.de
_____________________________________________________________________
More information about the dune-pdelab
mailing list