Skip to content

Commit

Permalink
declared self.num_ghosts as int
Browse files Browse the repository at this point in the history
  • Loading branch information
sanromd committed Oct 20, 2020
1 parent 385bc83 commit e5ac2fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyclaw/sharpclaw/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ def setup(self,solution):
Allocate RK stage arrays or previous step solutions and fortran routine work arrays.
"""
if self.lim_type == 2:
self.num_ghost = (self.reconstruction_order+1)/2
self.num_ghost = int((self.reconstruction_order+1)/2)

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

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

0 comments on commit e5ac2fe

Please sign in to comment.