Thanks for the answer, but it still doesn't work well for me.<br>I have changed solution to 3 components. Paraview doesn't issue a warning, but neither does it<br>show u initially, although 'Vectors="u"' is present. I attach the file, maybe you could explain why this happens.<br>
As for the Paraview bug, I tried to report it yesterday, but apparently I have to pay a $5000 subscription fee to get support:)<br>   About the adapter, I tried:<br><br>vtkwriter.addVertexData(new PDE::VTKGridFunctionAdapter<PDE::DiscreteGridFunction<GFS,U> >(PDE::SelectComponentAdapter<PDE::VectorDiscreteGridFunction<GFS,U> >(udgf,0),"u");<br>
<br>This gives me:<br><br>no type named ‘LocalFiniteElementType’ in ‘struct Dune::PDELab::PowerCompositeGridFunctionSpaceTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2>, (Dune::PartitionIteratorType)4u> >, Dune::PDELab::ISTLVectorBackend<1>, Dune::PDELab::GridFunctionSpaceBlockwiseMapper, 3>’<br>
<br>Could you tell me the proper way to use it?<br><br>best regards,<br>Oleh Krehel<br><br><br><div class="gmail_quote">2011/3/29 Jö Fahlke <span dir="ltr"><<a href="mailto:jorrit@jorrit.de" target="_blank">jorrit@jorrit.de</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Am Tue, 29. Mar 2011, 10:03:54 +0200 schrieb Oleh Krehel:<br>
<div>> Actually the line that you quoted shouldn't change.<br>
> What I meant was instead of line<br>
><br>
> <PointData* Vectors="u"*><br>
><br>
> you should have<br>
><br>
> <PointData><br>
><br>
> . This fixes the problem for me.<br>
> Thanks for advice with adapter, I'll try it.<br>
<br>
</div>Ah, OK.  You are indeed right.  However, I still fail to see why ParaView has<br>
the problem with that: the attribute 'Vectors="u"' simply means that u is the<br>
vector field that is initially shown by default when ParaView first opens that<br>
file.  If you remove that attribute, ParaView simply shows some solid color<br>
initially, but later you can simply select the field u and ParaView handles it<br>
just fine (although there _are_ some rough edges, like the list where can<br>
select components showing component numbers 0 to 5 while the color legend<br>
shows components 1 to 6).<br>
<br>
If that attribute is there, ParaView will complain initially.  If you ignore<br>
the error message however, you can simply continue as in the case without the<br>
attribute.<br>
<br>
I suspekt this is a bug in ParaView.  Would you be so kind to report it to the<br>
ParaView guys (or check whether they have fixed it in a later version<br>
already)?<br>
<br>
Thanks,<br>
Jö.<br>
<font color="#888888"><br>
--<br>
Das Erststudium soll bis zum berufsqualifizierenden Abschluss<br>
gebührenfrei bleiben, also bis zur Erlangung der Taxi-Lizenz.<br>
-- Akrützel, Ausgabe vom 16.5.2002 (<a href="http://www.akruetzel.de" target="_blank">www.akruetzel.de</a>)<br>
</font><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
<br>
iQIVAwUBTZGcp+mx9CKgc0OWAQg1GRAAq7x57g+SqL//a0DVKnuys1XtDPMg/mQB<br>
Y9dajXGueew82u20oAGd1V0RkdeBYtWW1QdkBSQ3fUvY+tKRTswYrmP2/D8EKhpW<br>
dAIVwktaHvlZVFgGvyjExMJ0gYHcCOIdbw5ao1VQT55GjKmc25IXvWiFUqLGYg30<br>
p5+7xe8FqdWivAtrY3rn35IoJ6kSDVYP3gHTbcQCQQUX0TID3OKOhvI1TwgtTqoo<br>
2++Mw1lFwzGAU7LdITOMEocv9Kqv6yxGBI/n7OpKKfU4wHe7yiTUny+au2YsZNek<br>
yb1JqWec6A4r0a94yiFlr2Zq6KG/O4JSa7TQmk/J19Y1mH7AZbzq8ZcFA5eSSNpV<br>
ejiCpIPa2mzbr0kMxUQiF9gvTe4H+ZqvJRXAkPJ9ZvCRUxAbpR4M+M99PFP5jsx5<br>
CB/tP5+FxwPJr3pX1kFh59jwbTBzY7CS6lhCEwHFrB6xeNd1kFLegDu081j24SQo<br>
Gad8O3JbON+gHnEhmEXm+6hVjMyBTHxmSI3/jI/FUs2lh5XYHk02FgNZcGnTX70d<br>
CSWPPx89yPyDmK089EwjoTQqvWIrAAKAaOdsxgsg2X9q6bPqvRb32KII2ne3A4Yy<br>
QDC8PalbUR1GRWBfNO2StwMl7ZysrAQU5CAfOiwshUFReNgM7s6KVoGxUkheeKfN<br>
/Vnwumwe0rY=<br>
=xa0q<br>
-----END PGP SIGNATURE-----<br>
<br></blockquote></div><br>