[dune-functions] Question about the VTKWriter

Oliver Sander sander at igpm.rwth-aachen.de
Thu Mar 26 16:27:45 CET 2015


Hi guys,
I must have missed a detail.  At the end of poisson-pq2.cc it says:

  Dune::Functions::DiscreteScalarGlobalBasisFunction<decltype(feBasis),decltype(x)> xFunction(feBasis,x);
  auto localXFunction = localFunction(xFunction);
  SubsamplingVTKWriter<GridView> vtkWriter(gridView,2);
  vtkWriter.addVertexData(localXFunction, VTK::FieldInfo("x", VTK::FieldInfo::Type::scalar, 1));
  vtkWriter.write("poisson-pq2");

Why does the writer get a _local_ function?  Shouldn't it be able to request all the
information it needs from the DiscreteScalarGlobalBasisFunction?

Thanks,
Oliver

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune-functions/attachments/20150326/9abe1cab/attachment.sig>


More information about the dune-functions mailing list