[Dune] [#438] Let FieldVector inherit from Dune::array

Dune dune at dune-project.org
Fri May 8 11:39:26 CEST 2009


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#438 - Let FieldVector inherit from Dune::array
User who did this - Martin Nolte (nolte)

----------
The warning is not fixed. With me, it happens whenever genericreferenceelements.hh is included (and maybe used).

You're right about the alignment problem. The size FieldVector< double, n> should be exactly
n doubles (except for n=0), since sometimes a double[ n ] is casted into a FieldVector.

Anyway, an implementation of array class (I don't care for the name) with exactly the properties of a FieldVector (except for its interpretation as a mathematical vector, of course) is a very desirable thing. In some situations, the FieldVector is already misused as such an array and I don't this this is a good idea.

I std::array does not provide the properties we want, I suggest to have a special Dune::Array or Dune::FixedArray that implements exactly this behaviour. Personally, I prefer this approach to using TR1 stuff anyway, since you never know if it is properly (i.e., in the way we expect it to be) implemented...
----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=438#comment931

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list