[Gmsh] gmsh avec visual basic
    Christophe Geuzaine 
    geuzaine at acm.caltech.edu
       
    Thu Jul 15 22:46:04 CEST 2004
    
    
  
julien.briche wrote:
> bonjour,
> Est-il possible de lier le mailleur GMSH à d'autres langages de 
> programmation comme fortran ou visual basic?
> En effet je suis en train de developper une interface visual basic pour 
> un programme d'éléments finis en fortran et je voulais savoir si il 
> était possible d'utiliser le mailleur gmsh dans mon code, c'est à dire 
> recuperer des données du mailleur ou en envoyer a partir de VB ou Fortran.
An easy solution would be to just use files as your "interface": your 
code could create a .geo file, call Gmsh in the background (without the 
GUI), and read the .msh file back.
(You can call Gmsh without the GUI by adding -1, -2 or -3 on the command 
line; you can even compile a purely non-GUI version of Gmsh with 
"./configure --disable-gui; make".)
Otherwise, the sources of Gmsh are available: you can do whatever you
want with them (e.g. remove the "main" and link the libraries with a
Fortran code) *provided* that you respect the licensing terms (GNU GPL)...
Best,
Christophe
-- 
Christophe Geuzaine
Applied and Computational Mathematics, Caltech
geuzaine at acm.caltech.edu - http://geuz.org