Skip to content

Commit

Permalink
fixed error in discretization
Browse files Browse the repository at this point in the history
  • Loading branch information
lightningclaw001 committed Aug 23, 2022
1 parent 0222cc4 commit bba9729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpet/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def get_elyte_disc(Nvol, L, poros, BruggExp, k_h):
dxtmp = np.hstack((out["dxvec"][0], out["dxvec"], out["dxvec"][-1]))
out["dx"] = dxtmp
out["dxd1"] = utils.mean_linear(dxtmp)
out["dxd2"] = utils.mean_linear(out["dxd1"]) # for thermal finite differences
out["dxd2"] = dxtmp[1:-1] # for thermal finite differences

# The porosity vector
out["porosvec"] = utils.get_asc_vec(poros, Nvol)
Expand Down

0 comments on commit bba9729

Please sign in to comment.