From 5127188d7f5ebbb9b2635f4d9da45c848c183ce0 Mon Sep 17 00:00:00 2001 From: Philipp Edelmann Date: Sun, 23 Jun 2024 14:54:51 -0600 Subject: [PATCH] syntax fix in docs Makes it renter as Python code. Without it the display is messed up. --- doc/source/User_Guide/model_setup.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/source/User_Guide/model_setup.rst b/doc/source/User_Guide/model_setup.rst index de731d61..60eff675 100644 --- a/doc/source/User_Guide/model_setup.rst +++ b/doc/source/User_Guide/model_setup.rst @@ -243,7 +243,8 @@ Using a Grid-Description File to Specify a Nonuniform Grid An arbitrary radial grid may also be generated using Python and then stored to a file that is read when Rayleigh initializes. To do so, import the *reference_tools* module and define a custom grid as illustrated by the code snippet below. -:: +.. code-block:: python + import numpy # Import necessary modules import reference_tools as rt @@ -539,7 +540,7 @@ in "script" mode. Alternatively, in "module" mode in a python shell: -:: +.. code-block:: python from rayleigh_spectral_input import * si = SpectralInput(n_theta=96, n_r=64) @@ -591,7 +592,7 @@ The file structure created through the class's write method contains a record of The sample code below defines a file with sufficient information to alter the viscous, heating, and buoyancy functions of a Rayleigh-provided reference state. This information would be insufficient for use with reference_type=4, but several example notebooks handling that scenario are provided below. -.. code-block:: +.. code-block:: python import numpy from reference_tools import equation_coefficients