Skip to content

Commit

Permalink
Add deprecation warning for ParallelFlorisModel.
Browse files Browse the repository at this point in the history
  • Loading branch information
misi9170 committed Sep 26, 2024
1 parent c6e05dc commit 26b715f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions floris/parallel_floris_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ def __init__(
print_timings (bool): Print the computation time to the console. Defaults to False.
"""

self.logger.warning((
"ParallelFlorisModel is deprecated and will be removed in a future version. "
"Please switch to ParFlorisModel instead."
))

# Set defaults for backward compatibility
if use_mpi4py is not None:
warnings.warn(
Expand Down

0 comments on commit 26b715f

Please sign in to comment.