Skip to content

Commit c765f47

Browse files
author
hochunlin
committed
Add comments on 2d open channel example
1 parent 6dfe8f2 commit c765f47

File tree

5 files changed

+27
-0
lines changed

5 files changed

+27
-0
lines changed

examples/2d_open_channel_through_disorder/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,15 @@ nz_low = round(Int,(L_tot-L)/2/dx)
139139
nz_high = nz_low
140140
opts.nz_low = nz_low
141141
opts.nz_high = nz_high
142+
# opts.use_L0_threads = true would enhances the time performance,
143+
# but marginally increases the memoery usage.
144+
# the default of opts.use_L0_threads is true for 2D system.
145+
# here we turn opts.use_L0_threads off, because this L0-threads layer
146+
# in multithreads makes the numerical results slightly depends on the
147+
# number of threads with acceptable error.
148+
# later we want to show that the result from mesti() and mesti2s()
149+
# should be exact the same later, so we turn it off to exclude the influence from
150+
# the this L0-threads layer.
142151
opts.use_L0_threads = false
143152

144153
# for field-profile computations

examples/2d_open_channel_through_disorder/open_channel_through_disorder.ipynb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,15 @@
186186
"nz_high = nz_low\n",
187187
"opts.nz_low = nz_low\n",
188188
"opts.nz_high = nz_high\n",
189+
"# opts.use_L0_threads = true would enhances the time performance, \n",
190+
"# but marginally increases the memoery usage. \n",
191+
"# the default of opts.use_L0_threads is true for 2D system.\n",
192+
"# here we turn opts.use_L0_threads off, because this L0-threads layer\n",
193+
"# in multithreads makes the numerical results slightly depends on the\n",
194+
"# number of threads with acceptable error. \n",
195+
"# later we want to show that the result from mesti() and mesti2s()\n",
196+
"# should be exact the same later, so we turn it off to exclude the influence from\n",
197+
"# the this L0-threads layer.\n",
189198
"opts.use_L0_threads = false\n",
190199
"\n",
191200
"# for field-profile computations\n",

examples/2d_open_channel_through_disorder/open_channel_through_disorder.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@ nz_low = round(Int,(L_tot-L)/2/dx)
108108
nz_high = nz_low
109109
opts.nz_low = nz_low
110110
opts.nz_high = nz_high
111+
# opts.use_L0_threads = true would enhances the time performance,
112+
# but marginally increases the memoery usage.
113+
# the default of opts.use_L0_threads is true for 2D system.
114+
# here we turn opts.use_L0_threads off, because this L0-threads layer
115+
# in multithreads makes the numerical results slightly depends on the
116+
# number of threads with acceptable error.
117+
# later we want to show that the result from mesti() and mesti2s()
118+
# should be exact the same later, so we turn it off to exclude the influence from
119+
# the this L0-threads layer.
111120
opts.use_L0_threads = false
112121

113122
# compute the field-profiles through mesti()

mumps/windows/.Makefile.inc.swp

-16 KB
Binary file not shown.

0 commit comments

Comments
 (0)