Skip to content

Commit e5ac2fe

Browse files
committed
declared self.num_ghosts as int
1 parent 385bc83 commit e5ac2fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pyclaw/sharpclaw/solver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,10 @@ def setup(self,solution):
207207
Allocate RK stage arrays or previous step solutions and fortran routine work arrays.
208208
"""
209209
if self.lim_type == 2:
210-
self.num_ghost = (self.reconstruction_order+1)/2
210+
self.num_ghost = int((self.reconstruction_order+1)/2)
211211

212212
if self.lim_type == 3:
213-
self.num_ghost = 1 + self.reconstruction_order/2
213+
self.num_ghost = int(1 + self.reconstruction_order/2)
214214

215215
if self.lim_type == 2 and self.reconstruction_order != 5 and self.kernel_language == 'Python':
216216
raise Exception('Only 5th-order WENO reconstruction is implemented in Python kernels. \

0 commit comments

Comments
 (0)