[Dune-devel] [GSoC] Update

Oliver Sander oliver.sander at tu-dresden.de
Tue Aug 2 15:59:02 CEST 2016


Hi Xinyun,

I saw that you committed some more code into your repository -- nice.  On the other
hand it has been a while since you gave us your last status report.  Could you please
give us an update, preferably by a new blog entry?  Thanks!

I tried to use your recent changes to replace the hand-written VTK writer by the standard
one from dune-grid.  The small patch I used is attached below.  With that patch the code
does not compile, but the first 10 error messages look very easy to fix.  Can you give
that a try?

Thanks,
Oliver



diff --git a/src/dune-iga.cc b/src/dune-iga.cc
index c816571..e3251b9 100644
--- a/src/dune-iga.cc
+++ b/src/dune-iga.cc
@@ -11,6 +11,8 @@
 #include <dune/common/exceptions.hh>
 #include <dune/common/fvector.hh>

+#include <dune/grid/io/file/vtk/subsamplingvtkwriter.hh>
+
 #include <dune/iga/bsplinegrid.hh>
 #include <dune/iga/bsplinepatch.hh>
 #include <dune/iga/NURBSpatch.hh>
@@ -41,7 +43,7 @@ void testBSplineGridSurface()
   //controlNet.disp();

   IGA::BSplineGrid<dim,dimworld> grid(knotSpans, controlNet, order);
-  const auto& gridView = grid.leafGridView();
+  const auto gridView = grid.leafGridView();
   const auto& indexSet = gridView.indexSet();
   ////////////////////////////////////////////////////////////////
   //  Write to a VTK file.
@@ -98,6 +100,9 @@ void testBSplineGridSurface()
     offset += ((1<<subSampling)+1) * ((1<<subSampling)+1);
   }
   vtkFile.write("BSplineGridTest-Surface");
+
+  SubsamplingVTKWriter<decltype(gridView)> vtkWriter(gridView,subSampling);
+  vtkWriter.write("foo");
 }

 void testBSplineGridCurve()


-------------- 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-devel/attachments/20160802/f89ef2f7/attachment.sig>


More information about the Dune-devel mailing list