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

Marco Antolovic marco_antolovic at yahoo.it
Fri Nov 6 20:01:47 CET 2020


 Hi Christophe,
thanks for clarifying,
Regards,
Marco
    Il mercoledì 4 novembre 2020, 09:51:43 CET, Christophe Geuzaine <cgeuzaine at uliege.be> ha scritto:  
 
 

> 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



  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20201106/3862a7c2/attachment.html>


More information about the gmsh mailing list