[Gmsh] Feedback on new Gmsh API
Christophe Geuzaine
cgeuzaine at uliege.be
Mon Dec 4 12:53:06 CET 2017
> On 4 Dec 2017, at 09:40, Marek Wojciechowski <mwojc at p.lodz.pl> wrote:
>
> Dnia niedziela, 3 grudnia 2017 09:19:27 CET Christophe Geuzaine pisze:
>> To achieve these goals the API
>>
>> - is purely functional
>> - only uses basic types from the target language (C++, C or Python)
>> - is automatically generated from a master API description file
>> - is fully documented
>
> Great news! I looked into Python API and it looks very nice. I have two
> questions however:
>
> 1. How do i build libgmshc.so library which needs to be imported in python API
> file?
See demos/api/README.txt : basically, you need to either explicitly build the shared Gmsh libraries (cmake -DENABLE_BUILD_SHARED=1 ..; make), or the dynamic Gmsh app, which will build the shared libraries (cmake -DENABLE_BUILD_DYNAMIC=1 ..; make). Building the dynamic app is probably the most convenient, as you will get both the app and the libs. Note that both the main libgmsh and the small C wrapper libgmshc will be built automatically.
Then you need to install the libraries with "make install". Currently this will also install a copy of libgmshc in the gmsh/api directory, so that you can use it directly with the Python module. We will definitely improve the installation process later.
> 2. What about the gmshpy wrapper - it will be dropped?
>
No, but it should be reserved for internal Gmsh (and related projects) development. You can build this internal developer API and the related bindings (these are generated by swig) with -DENABLE_INTERNAL_DEVELOPER_API=1. But I don't recommend it unless you really need them: they are unsupported and undocumented. Gmsh packagers (e.g. Debian) will also be notified that they should not ship this internal development API.
Cheers,
Christophe
>
> Pregards,
> --
> Marek Wojciechowski
>
>
>
> ---
> Politechnika Łódzka
> Lodz University of Technology
>
> Treść tej wiadomości zawiera informacje przeznaczone tylko dla adresata.
> Jeżeli nie jesteście Państwo jej adresatem, bądź otrzymaliście ją przez pomyłkę
> prosimy o powiadomienie o tym nadawcy oraz trwałe jej usunięcie.
>
> This email contains information intended solely for the use of the individual to whom it is addressed.
> If you are not the intended recipient or if you have received this message in error,
> please notify the sender and delete it from your system.
>
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine
Free software: http://gmsh.info | http://getdp.info | http://onelab.info
More information about the gmsh
mailing list