Skip to content

Commit 0987a15

Browse files
committed
update example05a to include reference to Myy caching
1 parent 671abf7 commit 0987a15

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

examples/example05a - nonlinear_and_linear_evolution_with_GS.ipynb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@
217217
"- `min_dIy_dI`: threshold value below which passive structure normal modes are dropped. Modes with norm(d(Iy)/dI)<`min_dIy_dI` are dropped, which filters out modes that do not actually couple with the plasma.\n",
218218
"- `max_mode_frequency`: threshold value for characteristic frequencies above which passive structure normal modes are dropped (i.e. the fast modes).\n",
219219
"- **`n_linearization_workers`**: number of independent worker processes used to build the current-response (`dIydI`) and profile-parameter-response (`dIydtheta`) Jacobian columns. The default, `1`, retains serial construction. Values larger than one parallelise both the initial linearisation and later relinearisations without limiting the inner threading of ordinary time-step GS solves.\n",
220+
"- `cache_myy`: determines whether the Myy matrix should be calculated once and saved, or re-calculated as needed. The default is `True`, setting to `False` reduces memory usage significantly, allowing for more resolved meshes to be used. Note that not caching Myy can have serious performance impact when evolving the plasma non-linearly (i.e. when passing `linear_only=False` to the `nlstepper`); for linear evolution no noticeable impact should be expected.\n",
220221
"\n",
221222
"Other customisable inputs are available, do see the documentation or the later notebook on \"Growth Rates\" for more details. For example, one may explicitly set your own resistance and inductance matrices for the tokamak, rather than the geometrical value calculated internally in FreeGSNKE.\n",
222223
"\n",
@@ -241,6 +242,7 @@
241242
" plasma_resistivity=1e-6,\n",
242243
" max_mode_frequency=10**2.5,\n",
243244
" n_linearization_workers=1, # set >1 to parallelise Jacobian construction\n",
245+
" cache_myy=True,\n",
244246
")"
245247
]
246248
},

0 commit comments

Comments
 (0)