[Dune-devel] [GSoC] Update

Xinyun Li xinyun.li at fau.de
Wed Aug 3 22:01:33 CEST 2016


Hello Oliver,

The updates are recorded at my blog. This is the blog address:
https://gsoc2016xinyun.blogspot.de/.
Actually in my last Email I asked you something regarding the
IntersectionIterator class? Maybe you didn't see and reply.  So I moved on
with the NURBS grid manager.

I didn't test the VTKWriter so far as I'm not very positive about what I
have is enough for that. Currently I am only able to make the codim=0 work,
which I assume is the element dimension(Am I right?).  I don't know what to
do with other codimensions. And the intersection iterator is not ready.

But I will try to dig into that, at least fix some bugs which can be easily
recognizable. I will let you know if I make some progress or get stuck
somewhere.

Cheers,
Xinyun

-----Original Message-----
From: Oliver Sander [mailto:oliver.sander at tu-dresden.de] 
Sent: Tuesday, August 2, 2016 3:59 PM
To: Xinyun Li <xinyun.li at fau.de>; dune-devel at dune-project.org
Subject: [GSoC] Update

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()







More information about the Dune-devel mailing list