[Gmsh] Repeated ids with Duplicata

Alexander Lindsay adlinds3 at ncsu.edu
Thu Oct 13 21:23:03 CEST 2016


I'm getting repeated IDs using Duplicata. Here's the relevant excerpt 
from my script:
|
Plane Surface(11) = {9, 10};
Plane Surface(12) = {10};
fuel_surfaces[] = {};
moder_surfaces[] = {};
For xtrans In {0:108:12}
For ytrans In {0:108:12}
new_f_surface = Translate {xtrans, ytrans, 0} {
Duplicata { Surface{11}; }
};
fuel_surfaces += new_f_surface;
new_m_surface = Translate {xtrans, ytrans, 0} {
Duplicata { Surface{12}; }
};
moder_surfaces += new_m_surface;
Printf("New f surface '%g'", new_f_surface);
Printf("New m surface '%g'", new_m_surface);
EndFor
EndFor

| And here's the beginning of the output:
|
New f surface '13'
New m surface '13'
New f surface '13'
New m surface '22'
New f surface '23'
New m surface '32'
New f surface '33'
New m surface '42'

| How do I ensure that everything has a unique ID?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20161013/5e51b68e/attachment.html>


More information about the gmsh mailing list