Skip to content

Commit

Permalink
Add missing np to gas_model
Browse files Browse the repository at this point in the history
  • Loading branch information
tulioricci committed Jun 27, 2023
1 parent 4f16476 commit 82b5d32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mirgecom/gas_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,11 @@ def make_fluid_state(cv, gas_model,
actx = cv.array_context

# FIXME work-around for now
smoothness_mu = (actx.zeros_like(cv.mass) if smoothness_mu
smoothness_mu = (actx.np.zeros_like(cv.mass) if smoothness_mu
is None else smoothness_mu)
smoothness_kappa = (actx.zeros_like(cv.mass) if smoothness_kappa
smoothness_kappa = (actx.np.zeros_like(cv.mass) if smoothness_kappa
is None else smoothness_kappa)
smoothness_beta = (actx.zeros_like(cv.mass) if smoothness_beta
smoothness_beta = (actx.np.zeros_like(cv.mass) if smoothness_beta
is None else smoothness_beta)

if wall_density is None:
Expand Down

0 comments on commit 82b5d32

Please sign in to comment.