Skip to content

Commit 11feaf2

Browse files
authored
Fix gmsh thresholding figure (#319)
1 parent 34d2469 commit 11feaf2

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

chapter2/ns_code2.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,13 @@
215215
"source": [
216216
"Create distance field from obstacle.\n",
217217
"Add threshold of mesh sizes based on the distance field\n",
218+
"```\n",
218219
"LcMax - /--------\n",
219220
" /\n",
220221
"LcMin -o---------/\n",
221222
" | | |\n",
222-
" Point DistMin DistMax"
223+
" Point DistMin DistMax\n",
224+
"```"
223225
]
224226
},
225227
{

chapter2/ns_code2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.18.1
9+
# jupytext_version: 1.19.1
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python
@@ -165,11 +165,13 @@
165165

166166
# Create distance field from obstacle.
167167
# Add threshold of mesh sizes based on the distance field
168+
# ```
168169
# LcMax - /--------
169170
# /
170171
# LcMin -o---------/
171172
# | | |
172173
# Point DistMin DistMax
174+
# ```
173175

174176
res_min = r / 3
175177
if mesh_comm.rank == model_rank:

0 commit comments

Comments
 (0)