Skip to content

Commit e9a970f

Browse files
Correct comments in the code
1 parent a991a56 commit e9a970f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

chapter2/linear-elasticity-v2.ipynb

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@
302302
"# assemble the Norm object\n",
303303
"l2_error_u = l2norm_uh.assemble(u=uh, kappa=kappa_val, mu=mu_val)\n",
304304
"\n",
305-
"print(\"L2 error in velocity:\", l2_error_u)"
305+
"print(\"L2 error in displacement:\", l2_error_u)"
306306
]
307307
},
308308
{
@@ -404,7 +404,7 @@
404404
"error_u2 = u2 - exact_u2\n",
405405
"error_u3 = u3 - exact_u3\n",
406406
"\n",
407-
"# Velocity plots\n",
407+
"# Displacement plots\n",
408408
"z_plane_list = np.linspace(0, 1, 5) #List of z-planes to plot\n",
409409
"fig = plt.figure(figsize=(24, 6 * len(z_plane_list)))\n",
410410
"\n",
@@ -549,11 +549,7 @@
549549
]
550550
}
551551
],
552-
"metadata": {
553-
"language_info": {
554-
"name": "python"
555-
}
556-
},
552+
"metadata": {},
557553
"nbformat": 4,
558554
"nbformat_minor": 5
559555
}

0 commit comments

Comments
 (0)