-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup and improvements in expr module after introduction of integra…
…l() (#54) * Fix bug in custom 'expand' function: When expanding an Add expression, this function was erroneously removing the Number term from the sum. * Fix bugs in 'is_linear_expression' function: - Function was erroneously ignoring interface integrals; - Function did not expand expressions before comparison. * Add linearity check to LinearForm's constructor: - When constructing a LinearForm from an expression, we verify that this is linear w.r.t. the given arguments, otherwise an exception is raised; - The above behavior is now verified in a unit test; - Moreover, the obsolete function 'is_linear_form' was removed. * Remove obsolete function 'is_linear_form' from sympde.expr.basic: Accordingly, LinearExpr's constructor uses 'is_linear_expression'. Moreover, LinearExpr's constructor always checks linearity of input. * Fix bug in unit tests: integrals of integrals. * Implement math properties of Poisson's bracket: - DONE: bilinearity and Leibniz's rule; - TODO: anticommutativity and Jacobi identity. * Add linearity checks to BilinearForm's constructor: - When constructing a BilinearForm from an expression, we verify that this is linear w.r.t. trial and test functions, otherwise an exception is raised; - The above behavior is now verified in a unit test; - Moreover, the obsolete function 'is_bilinear_form' was removed. * Poisson's bracket: add anti-commutativity, and some tests. * [codacy] Remove some unused imports. * Remove obsolete class 'BilinearExpr'. * Remove output files generated by unit tests. * [codacy] Remove unused imports. * [codacy] Use '_' for dummy variables. * [codacy] Remove more unused variables and imports. * Check arguments number in Poisson bracket constructor. * Reorder Poisson's bracket's arguments using 'str' instead of 'hash'. * Add (failing) unit tests: LinearForm w/ indexed VectorTestFunction. * Fix linearity check for expressions w/ indexed VectorTestFunction. * Add extensive unit tests (failing) for vector products. * Implement properties of vector products (dot, cross, inner, outer). * Add workaround for Cross' anti-symmetry to FEEC compiler. * Remove obsolete function Field and classes Unknown/VectorUnknown. Moreover: - Add 'projection_of' property to [Scalar|Vector]TestFunction; - In FEEC compiler, identify proxy fields with elements of [Scalar|Vector]FunctionSpace of undefined kind, instead of [Scalar|Vector]Field (which is deprecated). * [codacy] Remove unused imports. * Update version.
- Loading branch information
Showing
15 changed files
with
753 additions
and
906 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.