Skip to content

Commit

Permalink
Fixed black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SMijin committed Jul 27, 2023
1 parent 9d90c4e commit 3ac5538
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions RMK_support/common_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2511,9 +2511,11 @@ def dvEnergyTerm(

vProfile = [1 / (v**2) for v in vGrid]

drag = dv*np.ones(len(vGrid))
vSum = np.zeros(len(drag)) # ones if exact energy source is required, 0 if exactly no particle source is required (either way the error is negligible)
vSum[:-1] = vGrid[:-1]**2/( vGrid[1:] ** 2 - vGrid[:-1] ** 2)
drag = dv * np.ones(len(vGrid))
vSum = np.zeros(
len(drag)
) # ones if exact energy source is required, 0 if exactly no particle source is required (either way the error is negligible)
vSum[:-1] = vGrid[:-1] ** 2 / (vGrid[1:] ** 2 - vGrid[:-1] ** 2)
drag = drag * vSum
normConst = sc.CustomNormConst(multConst=multConst)

Expand Down

0 comments on commit 3ac5538

Please sign in to comment.