Skip to content

Commit

Permalink
fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
slayoo authored Jun 15, 2024
1 parent 31867db commit 67acd1b
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions PySDM/backends/impl_numba/methods/terminal_velocity_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,3 @@ def power_series(self, *, values, radius, num_terms, prefactors, powers):
prefactors=prefactors,
powers=powers,
)

@cached_property
def power_series_body(self):
@numba.njit(**{**conf.JIT_FLAGS, "fastmath": self.formulae.fastmath})
def power_series_body(*, values, radius, num_terms, prefactors, powers):
for i in numba.prange(len(values)): # pylint: disable=not-an-iterable
values[i] = 0.0
for j in range(num_terms):
values[i] = values[i] + prefactors[j] * radius[i] ** (powers[j] * 3)

return power_series_body

def power_series(self, *, values, radius, num_terms, prefactors, powers):
self.power_series_body(
values=values,
radius=radius,
num_terms=num_terms,
prefactors=prefactors,
powers=powers,
)

0 comments on commit 67acd1b

Please sign in to comment.