[Gmsh] loop through a non dense list of Points

jean pierre aubry jeanpierre at lamachine.fr
Thu Sep 19 08:46:57 CEST 2013


hello

i have a non dense point numbering,
for examples ten nodes scattered in (1:100), another ten in (100:200),
and so on

i want to do something like

For i In {0:100}
	c[] = Point{i};
	If (c[2]>0)
		Translate {0,tr, 0} {Point{i};}
	EndIf
EndFor

Gmsh raises the error
Error   : 'file_name.geo', line 244 : Unknown point '31'
Error   : Too many errors: aborting parser...

is there a way to detect a non existing Point in the list and do
nothing for this i

-- 
jean pierre aubry