[Dune-devel] Dune-devel Digest, Vol 45, Issue 20
Andreas Dedner
a.s.dedner at warwick.ac.uk
Tue Mar 15 19:51:58 CET 2016
Hi.
As said in the description for the junior jobs you can either set up a
separate dune module using the duneprojects script. That module would
simply depend on dune-common and would contain the boost python code and
the python test scripts. Alternatively you could branch from dune-common
directly and add the wrapper to dune-common directly and the python
tests to dune/common/test.
Note that FieldVector derives from DenseVector and many methods that
need to be wrapped are implemented there. For the testing you can take
dune/common/test/fvectortest.cc as a starting point of what sort of
things should work for the fvector python class.
Best
Andreas
On 15/03/16 13:15, Govind Sahai wrote:
> Hi,
> I found class FieldVector<> in ./dune-common/dune/common/fvector.hh.
> Now where should I start adding the wrappers?(In which file)?
>
> On Mon, Mar 14, 2016 at 4:30 PM, <dune-devel-request at dune-project.org
> <mailto:dune-devel-request at dune-project.org>> wrote:
>
> Send Dune-devel mailing list submissions to
> dune-devel at dune-project.org <mailto:dune-devel at dune-project.org>
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.dune-project.org/mailman/listinfo/dune-devel
> or, via email, send a message with subject or body 'help' to
> dune-devel-request at dune-project.org
> <mailto:dune-devel-request at dune-project.org>
>
> You can reach the person managing the list at
> dune-devel-owner at dune-project.org
> <mailto:dune-devel-owner at dune-project.org>
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Dune-devel digest..."
>
>
> Today's Topics:
>
> 1. Re: [GSoC 2016] (Martin Nolte)
> 2. Re: [GSoC 2016] (Christian Engwer)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 14 Mar 2016 09:20:46 +0100
> From: Martin Nolte <nolte at mathematik.uni-freiburg.de
> <mailto:nolte at mathematik.uni-freiburg.de>>
> To: dune-devel at dune-project.org <mailto:dune-devel at dune-project.org>
> Subject: Re: [Dune-devel] [GSoC 2016]
> Message-ID: <56E6745E.9070603 at mathematik.uni-freiburg.de
> <mailto:56E6745E.9070603 at mathematik.uni-freiburg.de>>
> Content-Type: text/plain; charset=windows-1252
>
> Hi Govind,
>
> as promised, we have added a junior job to get in touch with writing
> Python bindings for DUNE, namely writing example bindings for our
> FieldVector class in boost::python.
>
> We think boost::python Bindings will be easier to maintain over the
> years (after all, we are C++ programmers). The downside is that we
> have
> to port or rewrite the work done in the BEM++ project. In our opinion,
> it's worth, though, because the bindings can be slimmer. Notice,
> however, that this is not yet a final decision and you are highly
> welcome to make another proposal by yourself.
>
> Best,
>
> Martin
>
> On 03/11/2016 08:25 PM, Andreas Dedner wrote:
> > Hi Govind,
> > Welcome to Dune to thanks for your interest in our GSoC projects.
> >
> > To answer your question w.r.t. boost::python and Cython. I would
> think that the first step would be to
> > evaluate the work done within the bem++ project which is based
> on cython. For dune-fem we are providing bindings for
> > quite high level features of our packages while the bindings in
> bem++ export a big part of the grid interface. So the existing
> > cython bindings are much more low level then what we are
> currently working on for dune-fem and would complement what we are
> doing and also be potentially of great interest to the whole dune
> community.
> >
> > We will add a junior job to the list over the weekend which is
> more focused towards the dune-python project. Until then
> > checking out bempp and dune and seeing how the cython bindings
> work and can be accessed within python would be a great starting
> point.
> >
> > Best
> > Andreas
> >
> >
> >
> >
> > On 11/03/16 12:31, Govind Sahai wrote:
> >> Hi to all,
> >> I am Govind Sahai, currently a 3rd year engineering student in
> Indian
> >> Institute of Technology, BHU Varanasi, India pursuing
> Integrated Dual
> >> Degree in Mathematics And Computing. While searching for
> project ideas
> >> on your ideas
> >>
> <http://users.dune-project.org/projects/gsoc2016/wiki/Project_ideas#Project-4-Python-bindings-for-the-DUNE-grid-interface>
> page,
> >> I found interest in "Project 4: Python bindings for the DUNE grid
> >> interface". I have prior experience in C++ and Python, and also
> have
> >> some experience with boost::python. Also since some part of DUNE is
> >> already been exported to Python, using Cython, and dune-fem is
> using
> >> boost::python, will the new DUNE module use Cython or boost::python
> >> (or both)?
> >> Also, the link of *BEM++* given in *Project Description* of
> *Project
> >> 4* is giving *404* on my system.
> >>
> >> --
> >>
> ------------------------------------------------------------------------------------
> >>
> >>
> >> Govind Sahai
> >> Indian Institute of Technology
> >> Mathematical Sciences
> >> Part-III
> >> Varanasi-221005
> >>
> >>
> >>
> >> _______________________________________________
> >> Dune-devel mailing list
> >> Dune-devel at dune-project.org <mailto:Dune-devel at dune-project.org>
> >> http://lists.dune-project.org/mailman/listinfo/dune-devel
> >
> >
> >
> > _______________________________________________
> > Dune-devel mailing list
> > Dune-devel at dune-project.org <mailto:Dune-devel at dune-project.org>
> > http://lists.dune-project.org/mailman/listinfo/dune-devel
> >
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 14 Mar 2016 10:36:37 +0100
> From: Christian Engwer <christian.engwer at uni-muenster.de
> <mailto:christian.engwer at uni-muenster.de>>
> To: Martin Nolte <nolte at mathematik.uni-freiburg.de
> <mailto:nolte at mathematik.uni-freiburg.de>>
> Cc: dune-devel at dune-project.org <mailto:dune-devel at dune-project.org>
> Subject: Re: [Dune-devel] [GSoC 2016]
> Message-ID: <20160314093637.GB2176 at sansibar.localdomain>
> Content-Type: text/plain; charset=utf-8
>
> There is one thing one should consider and it is worthwile
> investigating this as part of the junior-job.
>
> The boost::python code is a horrible mess, as it still uses C++03. And
> as far as I know it is basically unmaintained.
>
> There is a new "version" called pybind11. It uses C++11, which
> dramatically simplifies the code and it is header-only, which I also
> consider a big benefit.
>
> Ciao
> Christian
>
> On Mon, Mar 14, 2016 at 09:20:46AM +0100, Martin Nolte wrote:
> > Hi Govind,
> >
> > as promised, we have added a junior job to get in touch with writing
> > Python bindings for DUNE, namely writing example bindings for our
> > FieldVector class in boost::python.
> >
> > We think boost::python Bindings will be easier to maintain over the
> > years (after all, we are C++ programmers). The downside is that
> we have
> > to port or rewrite the work done in the BEM++ project. In our
> opinion,
> > it's worth, though, because the bindings can be slimmer. Notice,
> > however, that this is not yet a final decision and you are highly
> > welcome to make another proposal by yourself.
> >
> > Best,
> >
> > Martin
> >
> > On 03/11/2016 08:25 PM, Andreas Dedner wrote:
> > > Hi Govind,
> > > Welcome to Dune to thanks for your interest in our GSoC projects.
> > >
> > > To answer your question w.r.t. boost::python and Cython. I
> would think that the first step would be to
> > > evaluate the work done within the bem++ project which is based
> on cython. For dune-fem we are providing bindings for
> > > quite high level features of our packages while the bindings
> in bem++ export a big part of the grid interface. So the existing
> > > cython bindings are much more low level then what we are
> currently working on for dune-fem and would complement what we are
> doing and also be potentially of great interest to the whole dune
> community.
> > >
> > > We will add a junior job to the list over the weekend which is
> more focused towards the dune-python project. Until then
> > > checking out bempp and dune and seeing how the cython bindings
> work and can be accessed within python would be a great starting
> point.
> > >
> > > Best
> > > Andreas
> > >
> > >
> > >
> > >
> > > On 11/03/16 12:31, Govind Sahai wrote:
> > >> Hi to all,
> > >> I am Govind Sahai, currently a 3rd year engineering student
> in Indian
> > >> Institute of Technology, BHU Varanasi, India pursuing
> Integrated Dual
> > >> Degree in Mathematics And Computing. While searching for
> project ideas
> > >> on your ideas
> > >>
> <http://users.dune-project.org/projects/gsoc2016/wiki/Project_ideas#Project-4-Python-bindings-for-the-DUNE-grid-interface>
> page,
> > >> I found interest in "Project 4: Python bindings for the DUNE grid
> > >> interface". I have prior experience in C++ and Python, and
> also have
> > >> some experience with boost::python. Also since some part of
> DUNE is
> > >> already been exported to Python, using Cython, and dune-fem
> is using
> > >> boost::python, will the new DUNE module use Cython or
> boost::python
> > >> (or both)?
> > >> Also, the link of *BEM++* given in *Project Description* of
> *Project
> > >> 4* is giving *404* on my system.
> > >>
> > >> --
> > >>
> ------------------------------------------------------------------------------------
> > >>
> > >>
> > >> Govind Sahai
> > >> Indian Institute of Technology
> > >> Mathematical Sciences
> > >> Part-III
> > >> Varanasi-221005
> > >>
> > >>
> > >>
> > >> _______________________________________________
> > >> Dune-devel mailing list
> > >> Dune-devel at dune-project.org <mailto:Dune-devel at dune-project.org>
> > >> http://lists.dune-project.org/mailman/listinfo/dune-devel
> > >
> > >
> > >
> > > _______________________________________________
> > > Dune-devel mailing list
> > > Dune-devel at dune-project.org <mailto:Dune-devel at dune-project.org>
> > > http://lists.dune-project.org/mailman/listinfo/dune-devel
> > >
> >
> > _______________________________________________
> > Dune-devel mailing list
> > Dune-devel at dune-project.org <mailto:Dune-devel at dune-project.org>
> > http://lists.dune-project.org/mailman/listinfo/dune-devel
> >
>
> --
> Prof. Dr. Christian Engwer
> Institut f?r Numerische und Angewandte Mathematik
> Fachbereich Mathematik und Informatik der Universit?t M?nster
> Einsteinstrasse 62
> 48149 M?nster
>
> E-Mail christian.engwer at uni-muenster.de
> <mailto:christian.engwer at uni-muenster.de>
> Telefon +49 251 83-35067 <tel:%2B49%20251%2083-35067>
> FAX +49 251 83-32729 <tel:%2B49%20251%2083-32729>
>
>
>
> ------------------------------
>
> _______________________________________________
> Dune-devel mailing list
> Dune-devel at dune-project.org <mailto:Dune-devel at dune-project.org>
> http://lists.dune-project.org/mailman/listinfo/dune-devel
>
>
> End of Dune-devel Digest, Vol 45, Issue 20
> ******************************************
>
>
>
>
> --
> ------------------------------------------------------------------------------------
>
>
> Govind Sahai
> Indian Institute of Technology
> Mathematical Sciences
> Part-III
> Varanasi-221005
> Contact : +91-8960-775849
>
>
> _______________________________________________
> Dune-devel mailing list
> Dune-devel at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20160315/86a73a13/attachment.htm>
More information about the Dune-devel
mailing list