[Dune-devel] Update on psurface convert

Xiaoxue Gong xiaoxue198912 at gmail.com
Sun Sep 22 09:14:17 CEST 2013


Hi!

Last week I was polishing my code to make it more organized.
I have been working on:
 1)Remove the main function from file psurface_convert_test.cpp, and put
the code into psurface_convert.cpp

 2) Correcting the augment and return type of functions.
    There are methods that return bool, but they always return the same
values. I correct the functions so they always return void.
    I used to use both char* and std::string as file name. Now I have
changed all filename to std::string type.

 3) Devide PsurfaceConvert class into 3 separate class written in separate
files, Hdf5IO , VTKIO and GmshIO.
    class Hdf5IO could read psurface and store it into hdf5 file format. We
can display that hdf5 file through xdmf script. You can see both base grid
triangles or the whole psurface by checking related boxed in paraview. It
also have functions that read hdf5 file and create psurface object from
that file. VTKIO could written psurface into xml vtu format so you can
display it in paraview. GmshIO could read the triangles from gmsh file and
construct the base grid psurface.

 4) Remove duplicated data.
    The PSurfaceConvert class used to copy all the data of the PSurface
object it holds. This waste storage and computational time.
    So I deleted these redundent data. Now Hdf5IO, VTKIO could read useful
data directly from pusrface.

 5) Documentation.
There was documentation in the middle of the project. Now the code have
changed a lot and I need to reorganize my document. I will push it to my
git repository  before Sunday night.

 Best,
 Xiaoxue
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20130922/163bcacd/attachment.htm>


More information about the Dune-devel mailing list