Skip to content

Commit 458933d

Browse files
sanromdDamian San Roman Aleri
authored andcommitted
added documentation to solver for lim_type=4 (polynomial)
1 parent 4a23e24 commit 458933d

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
@@ -40,11 +40,14 @@ class SharpClawSolver(Solver):
4040
0: No limiting.
4141
1: TVD reconstruction.
4242
2: WENO reconstruction.
43+
3: WENO5 reconstruction.
44+
4: Polynomial reconstruction.
4345
``Default = 2``
4446
4547
.. attribute:: reconstruction_order
4648
47-
Order of the WENO reconstruction. From 1st to 17th order (PyWENO)
49+
Order of the reconstruction. From 1st to 17th order (PyWENO), and from
50+
4 to 10 (even) in Poly
4851
``Default = 5``
4952
5053
.. attribute:: time_integrator
@@ -204,6 +207,9 @@ def setup(self,solution):
204207
if self.lim_type == 2:
205208
self.num_ghost = (self.reconstruction_order+1)/2
206209

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

0 commit comments

Comments
 (0)