Skip to content

Commit

Permalink
Add warning for KS conservative in higher dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceyron committed Sep 23, 2024
1 parent af2b344 commit beea37e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions exponax/stepper/_kuramoto_sivashinsky.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,14 @@ def __init__(
self.single_channel = single_channel
self.dealiasing_fraction = dealiasing_fraction

if num_spatial_dims > 1:
print(
"Warning: The KS equation in conservative format does not generalize well to higher dimensions."
)
print(
"Consider using the combustion format (`exponax.stepper.KuramotoSivashinsky`) instead."
)

if single_channel:
num_channels = 1
else:
Expand Down

0 comments on commit beea37e

Please sign in to comment.