We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 385bc83 commit e5ac2feCopy full SHA for e5ac2fe
src/pyclaw/sharpclaw/solver.py
@@ -207,10 +207,10 @@ def setup(self,solution):
207
Allocate RK stage arrays or previous step solutions and fortran routine work arrays.
208
"""
209
if self.lim_type == 2:
210
- self.num_ghost = (self.reconstruction_order+1)/2
+ self.num_ghost = int((self.reconstruction_order+1)/2)
211
212
if self.lim_type == 3:
213
- self.num_ghost = 1 + self.reconstruction_order/2
+ self.num_ghost = int(1 + self.reconstruction_order/2)
214
215
if self.lim_type == 2 and self.reconstruction_order != 5 and self.kernel_language == 'Python':
216
raise Exception('Only 5th-order WENO reconstruction is implemented in Python kernels. \
0 commit comments