[dune-pdelab] PDELab now depends on external library dune-typetree

Markus Blatt markus at dr-blatt.de
Wed Sep 11 13:31:04 CEST 2013


On Tue, Aug 27, 2013 at 12:37:42PM +0200, Steffen Müthing wrote:
> Dear PDELab users and developers,
> 
> The TypeTree library that used to be part of PDELab and is used for the construction of GridFunctionSpace
> trees and similar objects has been moved to an external Dune module because there will soon be some
> additional users that do not want to depend on PDELab to use it.
> 
> As a consequence of this move, all TypeTree code has been removed from the master branch; instead, we
> now depend on the new module dune-typetree.
> 
> Here is what you need to do to fix your installation and local modules:
> 
> - Download the new module dune-typetree from http://git.dune-project.org/repositories/dune-typetree.
>   If you have an older compiler ( < GCC 4.4), you might want to switch to the releases/1.0 branch for that module
>   because we will in the future remove some compatibility fixes from the development branch of that library.
> 
> - In your sources you may have to fix some includes and some namespaces:
> 
>   - grep for "dune/pdelab/common/typetree" to find any TypeTree headers you might have included. The headers
>     have moved like this:
>     - dune/pdelab/common/typetree/*.hh -> dune/typetree/*.hh
>     - dune/pdelab/common/typetree.hh -> dune/typetree/typetree.hh
> 
>   - grep for "PDELab::TypeTree" and replace any occurrences with just "TypeTree" (the library now lives in the
>     namespace Dune::TypeTree).


Or just execute these lines:
    for i in `find . -name \*.[hc][ch]| xargs grep "PDELab::TypeTree" | cut --delimiter=":" -f 1`; do sed "s/PDELab::TypeTree/TypeTree/g" $i> tmp && mv tmp $i
    for i in `find . -name \*.[hc][ch]| xargs grep "dune/pdelab/common/typetree/" | cut --delimiter=":" -f 1`; do sed "s/dune\/pdelab\/common\/typetree\//dune
    for i in `find . -name \*.[hc][ch]| xargs grep "dune/pdelab/common/typetree.hh" | cut --delimiter=":" -f 1`; do sed "s/dune\/pdelab\/common\/typetree\.hh/
 
Which to my surprise I had to apply in dune-pdelab-howto.

Markus

-- 
Do you need more support with DUNE or HPC in general? 

Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de
Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany
Tel.: +49 (0) 160 97590858  Fax: +49 (0)322 1108991658 




More information about the dune-pdelab mailing list