Skip to content

Commit 4717443

Browse files
committed
add some more links
1 parent 6e3233b commit 4717443

File tree

8 files changed

+23
-23
lines changed

8 files changed

+23
-23
lines changed

docs/source/compressible_basics.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ The parameter for this solver are:
6565

6666
:py:mod:`compressible_sdc` uses a 4th order accurate method with
6767
spectral-deferred correction (SDC) for the time integration. This
68-
shares much in common with the ``compressible_fv4`` solver, aside from
68+
shares much in common with the :py:mod:`compressible_fv4` solver, aside from
6969
how the time-integration is handled.
7070

7171
The parameters for this solver are:
@@ -78,7 +78,7 @@ Example problems
7878

7979
.. note::
8080

81-
The 4th-order accurate solver (``compressible_fv4``) requires that
81+
The 4th-order accurate solver (:py:mod:`compressible_fv4`) requires that
8282
the initialization create cell-averages accurate to 4th-order. To
8383
allow for all the solvers to use the same problem setups, we assume
8484
that the initialization routines initialize cell-centers (which is

docs/source/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The following steps are needed before running pyro:
2121
* add ``pyro/`` to your ``PYTHONPATH`` environment variable (note this is only
2222
needed if you wish to use pyro as a python
2323
module - this step is not necessary if you only run pyro via the
24-
commandline using the `pyro.py` script). For
24+
commandline using the ``pyro.py`` script). For
2525
the bash shell, this is done as:
2626

2727
.. code-block:: none

docs/source/mesh_basics.rst

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ discretization. The basic theory of such methods is discussed in
1515
methods for converting between the two data centerings.
1616

1717

18-
``mesh.patch`` implementation and use
19-
-------------------------------------
18+
:mod:`mesh.patch <mesh.patch>` implementation and use
19+
-----------------------------------------------------
2020

2121
We import the basic mesh functionality as:
2222

@@ -36,14 +36,16 @@ There are several main objects in the patch class that we interact with:
3636

3737
* :func:`patch.CellCenterData2d <mesh.patch.CellCenterData2d>`: this
3838
is the main data object—it holds cell-centered data on a grid. To
39-
build a ``CellCenterData2d`` object you need to pass in the ``Grid2d``
40-
object that defines the mesh. The ``CellCenterData2d`` object then
39+
build a :func:`patch.CellCenterData2d <mesh.patch.CellCenterData2d>`
40+
object you need to pass in the :func:`patch.Grid2d <mesh.patch.Grid2d>`
41+
object that defines the mesh. The
42+
:func:`patch.CellCenterData2d <mesh.patch.CellCenterData2d>` object then
4143
allocates storage for the unknowns that live on the grid. This class
4244
also provides methods to fill boundary conditions, retrieve the data
4345
in different fashions, and read and write the object from/to disk.
4446

4547
* :func:`fv.FV2d <mesh.fv.FV2d>`: this is a special class derived from
46-
``patch.CellCenterData2d`` that implements some extra functions
48+
:func:`patch.CellCenterData2d <mesh.patch.CellCenterData2d>` that implements some extra functions
4749
needed to convert between cell-center data and averages with
4850
fourth-order accuracy.
4951

@@ -99,14 +101,14 @@ Jupyter notebook
99101

100102
A Jupyter notebook that illustrates some of the basics of working with
101103
the grid is provided as :ref:`mesh-examples.ipynb`. This will
102-
demonstrate, for example, how to use the ``ArrayIndexer`` methods to
104+
demonstrate, for example, how to use the :func:`ArrayIndexer <mesh.array_indexer.ArrayIndexer>` methods to
103105
construct differences.
104106

105107

106108
Tests
107109
-----
108110

109-
The actual filling of the boundary conditions is done by the ``fill_BC()``
111+
The actual filling of the boundary conditions is done by the :func:`fill_BC <mesh.patch.CellCenterData2d.fill_BC>`
110112
method. The script ``bc_demo.py`` tests the various types of boundary
111113
conditions by initializing a small grid with sequential data, filling
112114
the BCs, and printing out the results.

docs/source/multigrid_basics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ There are three solvers:
1717
* The class :func:`general_MG.GeneralMG2d <multigrid.general_MG.GeneralMG2d>` solves a general elliptic
1818
equation of the form :math:`\alpha \phi + \nabla \cdot ( \beta
1919
\nabla \phi) + \gamma \cdot \nabla \phi = f`. This class inherits
20-
the core functionality from ``MG.CellCenterMG2d``.
20+
the core functionality from :func:`MG.CellCenterMG2d <multigrid.MG.CellCenterMG2d>`.
2121

2222
This solver is the only one to support inhomogeneous boundary
2323
conditions.

docs/source/output.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Several simply utilities exist to operate on output files
3939
Reading and plotting manually
4040
-----------------------------
4141

42-
pyro data can be read using the ``patch.read`` method. The following
42+
pyro output data can be read using the :func:`util.io.read <util.io.read>` method. The following
4343
sequence (done in a python session) reads in stored data (from the
4444
compressible Sedov problem) and plots data falling on a line in the x
4545
direction through the y-center of the domain (note: this will include

docs/source/particles_basics.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Particles
33

44
A solver for modelling particles.
55

6-
``particles.particles`` implementation and use
7-
----------------------------------------------
6+
:mod:`particles.particles <particles.particles>` implementation and use
7+
-----------------------------------------------------------------------
88

99
We import the basic particles module functionality as:
1010

@@ -39,8 +39,8 @@ The particles can be initialized in a number of ways:
3939
which generates particles based on array of particle positions passed to the
4040
constructor.
4141
* The user can define their own ``particle_generator`` function and pass this into the
42-
``Particles`` constructor. This function takes the number of particles to be
43-
generated and returns a dictionary of ``Particle`` objects.
42+
:func:`Particles <particles.particles.Particles>` constructor. This function takes the number of particles to be
43+
generated and returns a dictionary of :func:`Particle <particles.particles.Particle>` objects.
4444

4545
We can turn on/off the particles solver using the following runtime paramters:
4646

@@ -95,7 +95,7 @@ in as arguments to this function as they cannot be accessed using the standard
9595
Plotting particles
9696
------------------
9797

98-
Given the ``Particles`` object ``particles``, we can plot the particles by getting
98+
Given the :func:`Particles <particles.particles.Particles>` object ``particles``, we can plot the particles by getting
9999
their positions using
100100

101101
.. code-block:: python
@@ -128,7 +128,7 @@ x-position, we can plot them on the figure axis ``ax`` using the following code:
128128
ax.set_xlim([myg.xmin, myg.xmax])
129129
ax.set_ylim([myg.ymin, myg.ymax])
130130
131-
Applying this to the Kelvin-Helmholtz problem with the ``compressible`` solver,
131+
Applying this to the Kelvin-Helmholtz problem with the :mod:`compressible <compressible>` solver,
132132
we can produce a plot such as the one below, where the particles have been
133133
plotted on top of the fluid density.
134134

docs/source/running.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ an interface that enables simulations to be set up and run in a Jupyter notebook
5454
``examples/examples.ipynb`` for an example notebook. A simulation can be set up and run
5555
by carrying out the following steps:
5656

57-
* create a ``Pyro`` object, initializing it with a specific solver
57+
* create a :func:`Pyro <pyro.Pyro>` object, initializing it with a specific solver
5858
* initialize the problem, passing in runtime parameters and inputs
5959
* run the simulation
6060

61-
For example, if we wished to use the ``compressible`` solver to run the
61+
For example, if we wished to use the :mod:`compressible <compressible>` solver to run the
6262
Kelvin-Helmholtz problem ``kh``, we would do the following:
6363

6464
.. code-block:: python

docs/source/testing.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ script in the root directory.
99
Unit tests
1010
----------
1111

12-
pyro implements unit tests using py.test. These can be run via::
12+
pyro implements unit tests using ``py.test``. These can be run via::
1313

1414
./test.py -u
1515

@@ -36,5 +36,3 @@ We can compare to the stored benchmarks simply by running::
3636
may mean that we do not pass the regression tests. In this case, one would
3737
need to create a new set of benchmarks for that machine and use those for
3838
future tests.
39-
40-

0 commit comments

Comments
 (0)