Skip to content

Commit

Permalink
Fix missing factor of 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceyron committed Oct 22, 2024
1 parent 7f21cd0 commit 3d1a9a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exponax/nonlin_fun/_convection.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def _multi_channel_conservative_eval(
u = self.ifft(u_hat_dealiased)
u_outer_product = u[None, :] * u[:, None]
u_outer_product_hat = self.fft(u_outer_product)
convection = jnp.sum(
convection = 0.5 * jnp.sum(
self.derivative_operator[None, :] * u_outer_product_hat,
axis=1,
)
Expand Down

0 comments on commit 3d1a9a1

Please sign in to comment.