Skip to content

Commit

Permalink
add coord_type to grid class
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Jul 31, 2024
1 parent 0151d78 commit a6ac3d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyro/mesh/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ def __init__(self, nx, ny, ng=1,

super().__init__(nx, ny, ng, xmin, xmax, ymin, ymax)

self.coord_type = 0

# Length of the side in x- and y-direction

self.Lx = ArrayIndexer(np.full((self.qx, self.qy), self.dx),
Expand Down Expand Up @@ -254,6 +256,8 @@ def __init__(self, nx, ny, ng=1,

super().__init__(nx, ny, ng, xmin, xmax, ymin, ymax)

self.coord_type = 1

# Length of the side along r-direction, dr

self.Lx = ArrayIndexer(np.full((self.qx, self.qy), self.dx),
Expand Down

0 comments on commit a6ac3d6

Please sign in to comment.