[Dune] [Dune-Commit] dune-grid r6400 - trunk/dune/grid/io/file/amiramesh
Oliver Sander
sander at mi.fu-berlin.de
Wed Mar 10 17:05:04 CET 2010
Please merge this to the release branch.
thx,
Oliver
graeser at dune-project.org schrieb:
> Author: graeser
> Date: 2010-03-10 17:02:47 +0100 (Wed, 10 Mar 2010)
> New Revision: 6400
>
> Modified:
> trunk/dune/grid/io/file/amiramesh/amirameshwriter.cc
> Log:
> allow to use std::vector as outer container
>
>
> Modified: trunk/dune/grid/io/file/amiramesh/amirameshwriter.cc
> ===================================================================
> --- trunk/dune/grid/io/file/amiramesh/amirameshwriter.cc 2010-03-10 15:38:55 UTC (rev 6399)
> +++ trunk/dune/grid/io/file/amiramesh/amirameshwriter.cc 2010-03-10 16:02:47 UTC (rev 6400)
> @@ -574,8 +574,12 @@
> amiramesh_.insert(loc);
> }
>
> - // set up data (we assume ISTL conventions)
> - int numComponents = DataContainer::block_type::size;
> + // set up data
> + // we assume that at least the inner vector follows ISTL conventions
> + // unfortunately istl and std containers are not compatible
> + // in that it is not possible to extract the size
> + // of array and FieldVector by the same method
> + int numComponents = DataContainer::value_type::size;
>
> AmiraMesh::Data* amData =
> new AmiraMesh::Data("Data", loc, McPrimType::mc_double, numComponents);
>
>
> _______________________________________________
> Dune-Commit mailing list
> Dune-Commit at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-commit
>
--
************************************************************************
* Oliver Sander ** email: sander at mi.fu-berlin.de *
* Freie Universität Berlin ** phone: + 49 (30) 838 75348 *
* Institut für Mathematik ** URL : page.mi.fu-berlin.de/~sander *
* Arnimallee 6 ** -------------------------------------*
* 14195 Berlin, Germany ** Member of MATHEON (www.matheon.de) *
************************************************************************
More information about the Dune
mailing list