Skip to content
Snippets Groups Projects
Commit 585e43d8 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

typos

parent 9f9374b8
No related branches found
No related tags found
No related merge requests found
...@@ -57,13 +57,13 @@ For num In {1:255} ...@@ -57,13 +57,13 @@ For num In {1:255}
PostProcessing.View[0].Raise2 += 0.001*t ; PostProcessing.View[0].Raise2 += 0.001*t ;
If (num == 3) If (num == 3)
// We want to use mpeg_encode when num==3, so we set the width and // We want to use mpeg_encode to create a nice 320x240 animation
// height of the graphic window have to be multiple of 16! // for all frames when num==3:
General.Viewport2 = 320 ; General.Viewport2 = 320 ;
General.Viewport3 = 240 ; General.Viewport3 = 240 ;
EndIf EndIf
// It is possible to nest loops: // It is possible to nest loops:
For num2 In {1:50} For num2 In {1:50}
...@@ -75,16 +75,19 @@ For num In {1:255} ...@@ -75,16 +75,19 @@ For num In {1:255}
Draw; // draw the scene Draw; // draw the scene
If ((num == 3) && (num2 < 10)) If ((num == 3) && (num2 < 10))
Print Sprintf("t8-0%g.jpg", num2); // print the scene in a jpeg file // The Sprintf function permits to create complex strings using
// variables (since all Gmsh variables are treated internally as
// double precision numbers, the format should only contain valid
// double precision number format specifiers):
Print Sprintf("t8-0%g.jpg", num2);
EndIf EndIf
If ((num == 3) && (num2 >= 10)) If ((num == 3) && (num2 >= 10))
Print Sprintf("t8-%g.jpg", num2); // print the scene in a jpeg file Print Sprintf("t8-%g.jpg", num2);
EndIf EndIf
EndFor EndFor
If(num == 3) If(num == 3)
// We make a system call to generate the mpeg // We make a system call to generate the mpeg
System "mpeg_encode t8.par" ; System "mpeg_encode t8.par" ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment