[Gmsh] bug error_case file

ZhouBin zhoubinwx at hotmail.com
Tue Sep 9 11:23:47 CEST 2008


Dear friends,

This is the case, which you may test very easily.

Thank you.

Bin
----------------------------------------
> From: zhoubinwx at hotmail.com
> To: gmsh at geuz.org
> Subject: bug error
> Date: Tue, 9 Sep 2008 11:21:19 +0200
>
>
> Dear friends,
>
> I have a problem which I can not solve, after three days, Can I ask you for help?
>
> Would you please see the live between 'For t In {1:101}" and "EndFor" ?
> -----------------------------------------------
> For t In {1:101}
>
> // define a Physical Surface for each fiber:
> //http://gmsh.sourcearchive.com/documentation/1.65.0/nginterface_8cpp-source.html
> //char cir[10];
> //cir="fiber";
> //StrCat(cir,"fiber");
> //StrCat(cir,"t");
> //cir+=t;
>
> //Char is 8 bits. Int is 16 bits. Therefore you cannot get 16 bits into 8 bits without data overflow
> char add= (char) t;
> //char add= t.c_str(); //convert from string to char;
> //char add=t;
> //char add = (char)t->Chars[0];
>   Physical Surface(StrCat("fiber",add)) = {e1[8+4*t]:e1[11+4*t]} ;
> //StrCat ( char-expression , char-expression )
> //permits to concatenate two character expressions
> EndFor
> -----------------------------------------------
> I plan to name many circles as "fiber1", "fiber2", ...."fiber101". however, I do not know how to do using Gmsh?
>
> Or could you suggest me if I could use some other methods, for example, lists?
>
> Thank you for your reply.
>
> Best regards,
>
> Bin
> _________________________________________________________________
> Windows Live Photo gallery 数码相机的超级伴侣,轻松管理和编辑照片,还能制作全景美图!
> http://get.live.cn/product/photo.html

_________________________________________________________________
用手机MSN聊天写邮件看空间,无限沟通,分享精彩!
http://mobile.msn.com.cn/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20080909/ac970e1e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filter.geo
Type: application/octet-stream
Size: 42114 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20080909/ac970e1e/attachment.geo>