Skip to content

Commit

Permalink
Merge pull request #456 from ketch/fix_example_docstrings
Browse files Browse the repository at this point in the history
Add titles and use literal strings in example docstrings.
  • Loading branch information
ketch committed Aug 9, 2014
2 parents 47a3c79 + b50c408 commit 1fef8a4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
7 changes: 3 additions & 4 deletions examples/euler_2d/shock_bubble_interaction.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# encoding: utf-8
"""
r"""
Compressible Euler flow in cylindrical symmetry
===============================================
Expand Down Expand Up @@ -185,6 +185,8 @@ def setup(use_petsc=False,solver_type='classic', outdir='_output', kernel_langua
solver.step_source = step_Euler_radial
solver.source_split = 1
solver.limiters = [4,4,4,4,2]
solver.cfl_max = 0.5
solver.cfl_desired = 0.45

x = pyclaw.Dimension('x',0.0,2.0,mx)
y = pyclaw.Dimension('y',0.0,0.5,my)
Expand All @@ -198,9 +200,6 @@ def setup(use_petsc=False,solver_type='classic', outdir='_output', kernel_langua
qinit(state)
auxinit(state)

solver.cfl_max = 0.5
solver.cfl_desired = 0.45
solver.dt_initial=0.005
solver.user_bc_lower = incoming_shock

solver.bc_lower[0]=pyclaw.BC.custom
Expand Down
4 changes: 3 additions & 1 deletion examples/shallow_2d/radial_dam_break.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env python
# encoding: utf-8
r"""
2D shallow water: radial dam break
==================================
"""
Solve the 2D shallow water equations:
.. :math:
Expand Down
3 changes: 3 additions & 0 deletions examples/shallow_sphere/Rossby_wave.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env python
# encoding: utf-8
"""
Shallow water flow on the sphere
================================
2D shallow water equations on a spherical surface. The approximation of the
three-dimensional equations is restricted to the surface of the sphere.
Therefore only the solution on the surface is updated.
Expand Down

0 comments on commit 1fef8a4

Please sign in to comment.