Skip to content

Commit cceb0d7

Browse files
committed
added documentation to solver for lim_type=4 (polynomial)
1 parent 239fd1b commit cceb0d7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/pyclaw/sharpclaw/solver.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,14 @@ class SharpClawSolver(Solver):
4242
0: No limiting.
4343
1: TVD reconstruction.
4444
2: WENO reconstruction.
45+
3: WENO5 reconstruction.
46+
4: Polynomial reconstruction.
4547
``Default = 2``
4648
4749
.. attribute:: reconstruction_order
4850
49-
Order of the WENO reconstruction. From 1st to 17th order (PyWENO)
51+
Order of the reconstruction. From 1st to 17th order (PyWENO), and from
52+
4 to 10 (even) in Poly
5053
``Default = 5``
5154
5255
.. attribute:: time_integrator
@@ -206,6 +209,9 @@ def setup(self,solution):
206209
if self.lim_type == 2:
207210
self.num_ghost = (self.reconstruction_order+1)/2
208211

212+
if self.lim_type == 4:
213+
self.num_ghost = 1 + self.reconstruction_order/2
214+
209215
if self.lim_type == 2 and self.reconstruction_order != 5 and self.kernel_language == 'Python':
210216
raise Exception('Only 5th-order WENO reconstruction is implemented in Python kernels. \
211217
Use Fortran for higher-order WENO.')

0 commit comments

Comments
 (0)