Skip to content

Commit

Permalink
Fix polarity of floating CellVariable check
Browse files Browse the repository at this point in the history
Broken in 2eed418
  • Loading branch information
guyer committed Jun 20, 2024
1 parent 6e6c68e commit 729e2c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fipy/terms/unaryTerm.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def _getDefaultSolver(self, var, solver, *args, **kwargs):

def _checkVar(self, var):
if ((var is not None)
and issubclass(var.dtype.type, numerix.floating)):
and not issubclass(var.dtype.type, numerix.floating)):
import warnings
warnings.warn("""sweep() or solve() are likely to produce erroneous results when `var` does not contain floats.""",
UserWarning, stacklevel=4)
Expand Down

0 comments on commit 729e2c5

Please sign in to comment.