On 14 Jul 2012, at 21:11, Eiser, Sebastian wrote:

> Dear all,
> Thanks Christophe et al for providing and continuously improving `gmsh`. 
> 
> I'm currently trying to batch plot a series of results obtained by 
> code_aster. The format is 'med' and it contains three time steps. I saved the 
> options for plotting from the GUI (File -> Save Options -> For current file). 
> 
> I want to look at the last time step and this is correctly put into the .opt 
> file:
> View[0].NbTimeStep = 3;
> View[0].TimeStep = 2;
> 
> Then, I add 
> Merge "result.rmed";
> 
> to the beginning of the .opt file. To my surprise, the first time step 
> (TimeStep = 0) is selected and plotted when running `gmsh plot.opt`. I found 
> a workaround (without the "Merge" line in the .opt file) and by running the 
> following command:
> 
> $> gmsh result.rmed plot.opt
> 
> This gives the desired result. I don't know if I misunderstood something, but 
> this may help other to avoid wasting some time.
> 

Using View[0].Option will only affect the 0-index view if it exists, i.e., you 
have to set the option after the view is merged.

If you want to apply an option by default before a view is merged, you can use 
View.Option (without the "[0]").


> -Sebastian
> _______________________________________________
> gmsh mailing list
> [email protected]
> 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




_______________________________________________
gmsh mailing list
[email protected]
http://www.geuz.org/mailman/listinfo/gmsh

Reply via email to