Skip to content

Commit 05f70bc

Browse files
committed
added documentation to solver for lim_type=4 (polynomial)
1 parent 8b7a330 commit 05f70bc

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
@@ -55,11 +55,14 @@ def before_step(solver,solution)
5555
0: No limiting.
5656
1: TVD reconstruction.
5757
2: WENO reconstruction.
58+
3: WENO5 reconstruction.
59+
4: Polynomial reconstruction.
5860
``Default = 2``
5961
6062
.. attribute:: reconstruction_order
6163
62-
Order of the WENO reconstruction. From 1st to 17th order (PyWENO)
64+
Order of the reconstruction. From 1st to 17th order (PyWENO), and from
65+
4 to 10 (even) in Poly
6366
``Default = 5``
6467
6568
.. attribute:: time_integrator
@@ -207,6 +210,9 @@ def setup(self,solution):
207210
if self.lim_type == 2:
208211
self.num_ghost = (self.reconstruction_order+1)/2
209212

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

0 commit comments

Comments
 (0)