[Gmsh] How to Merge myFile*.pos

Christophe Geuzaine cgeuzaine at ulg.ac.be
Wed Jan 30 20:10:54 CET 2008


Christophe Geuzaine wrote:
> Nicolas Tardieu wrote:
>> Hi dear Gmsh-ers!
>>
>> There is a very usefull Gmsh's feature for me :
>>
>>  > gmsh -combine myFile*.pos
>>
>> that allows me to combine several time steps.
>>
>> But I do not know how to do that from a Gmsh script file since
>>
>> Merge "myFile*.pos";
>>
>> is not accepted by the parser.
>>
>> Is these a solution?
>>
> 
> If your files are numbered, maybe you could do
> 
> For i In {1:10}
>    Merge Sprintf("myFile%g.pos", i);
> EndFor
> 
> Combine TimeSteps;
> 
> (what an ugly hack ;-)
> 


And even better (worse) :)

System 'rm -f tmp.geo; touch tmp.geo' ;
System 'for n in `ls myFile*.pos` ; do echo Merge \"$n\" >> tmp.geo ; 
done' ;
Merge "tmp.geo";
Combine Views;




> 
> 
>> NiKo
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> gmsh mailing list
>> gmsh at geuz.org
>> http://www.geuz.org/mailman/listinfo/gmsh
> 
> 


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