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

Marco Antolovic marco_antolovic at yahoo.it
Mon Nov 9 09:31:04 CET 2020


 Sorry, wrong post. Please ignore previous message
Marco
    Il lunedì 9 novembre 2020, 08:56:04 CET, Marco Antolovic <marco_antolovic at yahoo.it> ha scritto:  
 
  Hello Christophe,
there appear to be problems with my email formatting.
To avoid that I re-send the previous message as a file (hopefully this should work)

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/20201109/610f4ac6/attachment-0001.html>


More information about the gmsh mailing list