Skip to content

Commit

Permalink
Update yt/frontends/amrex/data_structures.py
Browse files Browse the repository at this point in the history
Co-authored-by: Clément Robert <[email protected]>
  • Loading branch information
yut23 and neutrinoceros authored Oct 10, 2024
1 parent 07a0ac7 commit 01b2ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt/frontends/amrex/data_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,9 +905,9 @@ def _parse_header_file(self):
self.domain_right_edge = dre
if self.geometry == "spherical" and self.dimensionality < 3:
dre = self.domain_right_edge.copy()
dre[2] = 2.0 * np.pi
if self.dimensionality < 2:
dre[1] = np.pi
dre[2] = 2.0 * np.pi
self.domain_right_edge = dre

header_file.close()
Expand Down

0 comments on commit 01b2ffa

Please sign in to comment.