Hi Christophe,
thanks for clarifying,
Regards,
Marco
    Il mercoledì 4 novembre 2020, 09:51:43 CET, Christophe Geuzaine 
<[email protected]> ha scritto:  
 
 

> On 21 Oct 2020, at 19:41, Marco Antolovic <[email protected]> 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
> [email protected]
> http://onelab.info/mailman/listinfo/gmsh

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



  
_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to