[Gmsh] unrecognized variable loaded from another file using Merge command

Christophe Geuzaine cgeuzaine at uliege.be
Wed Nov 4 09:51:43 CET 2020



> On 21 Oct 2020, at 19:41, Marco Antolovic <marco_antolovic at yahoo.it> wrote:
> 
> Hi all,
> 
> I'm experiencing a strange behavior with some variable after loading them from an external file using Merge.
> 
> The attached files shows an example where the merged file (thermal_data.geo) contains three variables
> 
> T0, rho_20 and alpha0
> 
> When I run the script T0 and rho_20 are loaded without problems while alpha0  is ignored and the following error is generated: 'prova.geo', line 8 : Unknown variable 'alpha0'
> 
> Can someone explain what is happening?

The issue is linked to the mac encoding of the included file: Gmsh expects script files with line ending with \n (or \r\n); mac encoded files end lines only with \r.

Christophe


> 
> Thanks,
> 
> Marco
> <prova.geo><thermal_data.geo>_______________________________________________
> 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://people.montefiore.ulg.ac.be/geuzaine







More information about the gmsh mailing list