Skip to content

Commit 0f78e33

Browse files
author
Michael Zingale
committed
some more cleaning
1 parent 3ba7a0f commit 0f78e33

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

compressible/evolve.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,16 @@ def evolve(my_data, dt):
1717
grav = my_data.rp.get_param("compressible.grav")
1818

1919
myg = my_data.grid
20-
21-
22-
(Flux_x, Flux_y) = unsplitFluxes(my_data, dt)
20+
21+
Flux_x, Flux_y = unsplitFluxes(my_data, dt)
2322

2423
old_dens = dens.copy()
2524
old_ymom = ymom.copy()
2625

2726
# conservative update
28-
2927
dtdx = dt/myg.dx
3028
dtdy = dt/myg.dy
3129

32-
3330
dens[myg.ilo:myg.ihi+1,myg.jlo:myg.jhi+1] += \
3431
dtdx*(Flux_x[myg.ilo :myg.ihi+1,myg.jlo :myg.jhi+1,vars.idens] - \
3532
Flux_x[myg.ilo+1:myg.ihi+2,myg.jlo :myg.jhi+1,vars.idens]) + \

compressible/initialize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def initialize(rp):
2020
ymax = rp.get_param("mesh.ymax")
2121

2222
my_grid = patch.Grid2d(nx, ny,
23-
xmin=xmin, xmax=xmax, ymin=ymin, ymax=ymax,
24-
ng=4)
23+
xmin=xmin, xmax=xmax, ymin=ymin, ymax=ymax,
24+
ng=4)
2525

2626

2727
# create the variables

compressible/vars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
nvar = 4
22

33
# conserved variables -- we set these when we initialize for they match
4-
# the ccData2d object
4+
# the CellCenterData2d object
55
idens = -1
66
ixmom = -1
77
iymom = -1

0 commit comments

Comments
 (0)