Skip to content

Commit e171b62

Browse files
committed
fix chamonix.md and SegmentationFault.edp for parsing
1 parent acec026 commit e171b62

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

examples/bug/SegmentationFault.edp

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
////////////////////////////////////
33
// Optimisation d'une 'grue' //
4-
// volume constant //
4+
// a volume constant //
55
// avec un maillage sous-jacent //
66
// qu'on adpate a x^2 et y ^2 mais avec une
77
// erreur constante //
@@ -10,19 +10,19 @@
1010
// Nom du fichier de sauvegarde
1111
string sauve="grue";
1212

13-
// nombre d'it�rations
13+
// nombre d'iterations
1414
int niter=1;
1515

1616
//nombre de sauvegardes du maillage (<niter)
1717
int nsave=20;
1818

19-
//coefficient d'exag�ration de la d�formation
19+
//coefficient d'exageration de la deformation
2020
real exa=1;
2121

2222
//pas
2323
real pas=0.01;
2424

25-
//pr�cision du calcul
25+
//precision du calcul
2626
real errcalc=0.001;//
2727

2828
//finesse du maillage de structure
@@ -34,11 +34,11 @@ int nsaved=0;
3434
//compliance
3535
real compliance;
3636

37-
//fonction d�finissant la zone optimiser (=1 sur la fronti�re optimisable, =0 sinon)
37+
//fonction definissant la zone a optimiser (=1 sur la frontiere optimisable, =0 sinon)
3838
func cutx =(y>1)*(x<4);
3939
func cuty =(y>1)*(x<4);
4040

41-
//d�finition des bords de la forme
41+
//definition des bords de la forme
4242
//label =
4343
// 1:Condition de Dirichlet
4444
// 2:Condition Libre
@@ -51,16 +51,16 @@ border d2(t=9,0) {x=-0.5+0.5/9*t; y=t;label=2;}; //cote gauche de la grue
5151
border d1(t=0,8) {x=0.5+t/8; y=t;label=2;} //cote droit de la grue
5252
border e(t=-0.5,0.5) {x=t; y=0;label=1;}; //base de la grue
5353

54-
// forces appliqu�es
54+
// forces appliquees
5555
func g1=0;
5656
func g2=-1;
5757

58-
// coefficients de Young et de Lam�
58+
// coefficients de Young et de Lame
5959
real lambda=12;
6060
real mu=6;
6161

6262

63-
// coefficients de Lam� du mat�riau
63+
// coefficients de Lame du materiau
6464
cout <<"lambda,mu ="<<lambda<<","<<mu <<endl;
6565

6666
// construction du maillage de structure de la forme
@@ -70,7 +70,7 @@ mesh Sh=Shground;
7070
fespace Vh(Sh,[P1,P1]);
7171
Vh [uu,vv],[w,s];
7272

73-
// Calcul du d�placement de la structure
73+
// Calcul du deplacement de la structure
7474
problem elasticite([uu,vv],[w,s],solver=CG,eps=1.0e-6) =
7575
int2d(Sh)(
7676
2*mu*(dx(uu)*dx(w)+dy(vv)*dy(s)+((dx(vv)+dy(uu))*(dx(s)+dy(w)))/2)

examples/mpi/chamonix.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,7 @@ then run with
5050
~~~
5151

5252
### Remark
53-
You are reading this Markdown file which contains explainations and the FreeFEM script. When running Markdown files, FreeFEM selects the code lines enclosed in Markdown FreeFEM code blocks:
54-
55-
\`\`\`freefem
56-
[freefem code]
57-
\`\`\`
53+
You are reading this Markdown file which contains explainations and the FreeFEM script. When running Markdown files, FreeFEM selects the code lines enclosed in Markdown FreeFEM code blocks.
5854

5955
For a user friendly environment install the **vscode-FreeFEM** extension in the **VSCode** app. If your code is "not trusted" do Ctrl+Maj+P and look for "trust workspace settings".
6056

0 commit comments

Comments
 (0)