Skip to content

Commit

Permalink
syntax fix in docs
Browse files Browse the repository at this point in the history
Makes it renter as Python code. Without it the display is messed up.
  • Loading branch information
tukss committed Jun 23, 2024
1 parent ff320cf commit 5127188
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/source/User_Guide/model_setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5127188

Please sign in to comment.