We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a47d63 commit b049ac4Copy full SHA for b049ac4
src/pyclaw/geometry.py
@@ -1,4 +1,4 @@
1
-r"""
+"""
2
Module defining Pyclaw geometry objects.
3
"""
4
@@ -398,7 +398,7 @@ def add_gauges(self,gauge_coords):
398
# Check if gauge belongs to this grid:
399
if all(self.lower[n]<=gauge[n]<self.upper[n] for n in range(self.num_dim)):
400
# Set indices relative to this grid
401
- gauge_index = [int(round((gauge[n]-self.lower[n])/self.delta[n]))
+ gauge_index = [int((gauge[n]-self.lower[n])//self.delta[n])
402
for n in range(self.num_dim)]
403
gauge_file_name = 'gauge'+'_'.join(str(coord) for coord in gauge)+'.txt'
404
self.gauge_file_names.append(gauge_file_name)
0 commit comments