[Gmsh] gmsh Merge and Include

Christophe Geuzaine cgeuzaine at ulg.ac.be
Fri Feb 15 19:44:03 CET 2008


laurence griffiths wrote:
> hi,
> 
> I am using gmsh for my masters research project (University of Bristol, UK)
> 
>  I was wondering if anybody could explain the difference between the 
> Merge and Include commands? when i use Include i get invalid memory 
> references if i have a fine mesh (> 1 million tets)... when i use Merge 
> i dont.

1) "Include" behaves pretty much like "#include" in the C preprocessor: 
the contents of the included file is just fed to the language parser at 
the location of the "Include" command.

(You should thus never "Include" a mesh file, as a mesh file cannot be 
understood by the parser: a mesh file is not written in the ".geo" 
language. Still, if you do it, Gmsh should not crash: it should output 
an error message. I could not reproduce a crash here. Could you send 
your geo file and instructions on how to generate the mesh?)

2) "Merge" calls the appropriate internal function to read the merged 
file. It is the same thing as using the File->Merge menu.



> 
> (the geometry is the swift space-plane by aspirespace, each 'part' is 
> modeled and meshed in a separate '.geo'  file, and then all the parts 
> are tied together in a single file using either Merge or Include)
> 
> or perhaps somebody knows where i could look this up (ive already 
> checked out the users guide).
> 
> in advance - thanks a lot!
> 
> Laurence
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine