pyccel / psydac

Python 3 library for isogeometric analysis
https://pyccel.github.io/psydac/
MIT License
52 stars 18 forks source link

Use public properties `domain` & `codomain` in `LinearOperator.__neg__` #410

Closed campospinto closed 3 months ago

campospinto commented 4 months ago

The __neg__ function in class LinearOperator uses the _domain and _codomain attributes, which is wrong since these may not be defined. It should use the exposed (interface) properties domain and codomain instead.