Skip to content

Commit

Permalink
Changed default value of decomposition flag (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zwicker authored Jul 29, 2024
1 parent 375509e commit 4861313
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pde/fields/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ def plot_interactive(
napari_add_layers(viewer, self._get_napari_data(**kwargs))

def split_mpi(
self: TField, decomposition: Literal["auto"] | int | list[int] = -1
self: TField, decomposition: Literal["auto"] | int | list[int] = "auto"
) -> TField:
"""splits the field onto subgrids in an MPI run
Expand Down
2 changes: 1 addition & 1 deletion pde/solvers/explicit_mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def __init__(
self,
pde: PDEBase,
scheme: Literal["euler", "runge-kutta", "rk", "rk45"] = "euler",
decomposition: Literal["auto"] | int | list[int] = -1,
decomposition: Literal["auto"] | int | list[int] = "auto",
*,
backend: BackendType = "auto",
adaptive: bool = False,
Expand Down

0 comments on commit 4861313

Please sign in to comment.