Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add density and pres geom term in normal reconstruction for spherical geom #299

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
4 changes: 2 additions & 2 deletions pyro/mesh/tests/test_patch.py
Original file line number Diff line number Diff line change
@@ -145,7 +145,7 @@ def test_dlogAx(self):
i = 4
r = self.g.xmin + (i + 0.5 - self.g.ng) * self.g.dx
dlogAx = 2.0 / r
assert (self.g.dlogAx[i,:] == dlogAx).all()
assert (self.g.dlogAx[i, :] == dlogAx).all()

def test_dlogAy(self):
i = 4
@@ -154,7 +154,7 @@ def test_dlogAy(self):
tan = np.tan(self.g.ymin + (j + 0.5 - self.g.ng) * self.g.dy)
dlogAy = 1.0 / (r * tan)

assert self.g.dlogAy[i,j] == dlogAy
assert self.g.dlogAy[i, j] == dlogAy

def test_V(self):
volume = np.abs(-2.0 * np.pi / 3.0 *