[Dune] [Dune-Commit] dune-istl r929 - trunk/istl
Markus Blatt
Markus.Blatt at ipvs.uni-stuttgart.de
Wed Jul 30 14:04:26 CEST 2008
On Wed, Jul 30, 2008 at 01:34:50PM +0200, Oliver Sander wrote:
>
> > But this cast might have side effects which surprise people and are
> > really hard to find.
> >
> > If FieldMatrix and ScaledIDMatrix are so much correlated. Then
> > ScaledIDMAtrix should be moved to common and assignment and explicit
> > type conversion constructors should be implemented in FieldMatrix.
> >
> I do not think moving this class to dune-common is a good idea.
> It is very special will not be used frequently.
>
And I dont like the side effects of implicit type conversion. IMHO
moving is the best to keep the code clear.
Another possiblity (with other side effect, I admit) is providing a
constructor and assignment operator in FieldMatrix that has a template
parameter for the matrix.
Markus
More information about the Dune
mailing list