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

Marco Antolovic marco_antolovic at yahoo.it
Mon Nov 9 08:56:03 CET 2020


 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/40fab05c/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: message.txt
URL: <http://onelab.info/pipermail/gmsh/attachments/20201109/40fab05c/attachment-0001.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: structured_grids_with_step_files_test_V05.geo
Type: application/octet-stream
Size: 1301 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20201109/40fab05c/attachment-0001.geo>


More information about the gmsh mailing list