Skip to content

Commit

Permalink
fix p gradient sign
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Oct 21, 2024
1 parent 26ffe6f commit 0bde429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyro/compressible/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,9 @@ def evolve(self):
# fluxes

if myg.coord_type == 1:
xmom.v()[:, :] += self.dt * (qx.ip(1, n=self.ivars.ip) -
xmom.v()[:, :] -= self.dt * (qx.ip(1, n=self.ivars.ip) -
qx.v(n=self.ivars.ip)) / myg.Lx.v()
ymom.v()[:, :] += self.dt * (qy.jp(1, n=self.ivars.ip) -
ymom.v()[:, :] -= self.dt * (qy.jp(1, n=self.ivars.ip) -
qy.v(n=self.ivars.ip)) / myg.Ly.v()

# now the external sources (including gravity). We are going
Expand Down

0 comments on commit 0bde429

Please sign in to comment.