Skip to content

Commit

Permalink
Add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwoerer committed Jul 16, 2024
1 parent 07f221d commit a2fee3c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions zoidberg/stencil_dagp_fv.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ def doit(fn):
spc = np.linspace(0, 0.5, nx, endpoint=True)
spc2 = np.linspace(0.5, 1, nx, endpoint=True)

### Calculate Volume of the cell
#
### Go in a line around the cell
# xf is the normalised coordinates in x
# yf is the normalised coordinates in z
Expand Down Expand Up @@ -183,9 +185,9 @@ def slc(i):
nx = 3
spc3 = np.linspace(0, 1, nx)
cent = np.roll(toCent(RZ), -1, -1)
startpoint = cent[:, :-1]
midpoint = (RZ[:, 1:-1] + np.roll(RZ[:, 1:-1], -1, -1)) / 2
endpoint = cent[:, 1:]
startpoint = cent[:, :-1] # a
midpoint = (RZ[:, 1:-1] + np.roll(RZ[:, 1:-1], -1, -1)) / 2 # b
endpoint = cent[:, 1:] # c
log("concatenate")
pos = np.concatenate(
[
Expand Down

0 comments on commit a2fee3c

Please sign in to comment.