forked from FEniCS/ufl
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ksagiyam/merge upstream #34
Merged
Merged
Conversation
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
* Add trimmed serendipity * Fix value shape for trimmed serendipity * ufl plumbing update for trimmed serendipity. * Plumbing for SminusDiv.py * Adding in element stuff for SminusCurl. * Add dual space function to mixed function space * Add Dual Space class and mixed tests * Change name of dual space function * Add basic implementation of isprimal/dual * update dual tests * Corrections in functionspace and duals * Initial implementation of Cofunction * Initial Implementation of cofunction * lint * Export new classes * Add test for equality of cofunctions * Improved implementation of isdual/isprimal * rename duals test file * Comments * Add new method to coefficient * Add new to argument and tests * Lint * Update to fit docstyle * add newarguments so that pickle works * Add Matrix Class * Changes to Matrix Class * Add Matrix to init * Add BaseForm * Add form sum to init file * change inheritance structure and add baseform * Add baseform to matrix * Add some operation tests * Add comment about FormArgument * Fix signature tests * Tidy and add assertions to tests * Starting to implement matrix adjoint * Change approach of Adjoint Implementation * Remove unnecessary functions from BaseForm * Change implementation of new to fix tests * Update adjoint * Initial Action implementation and tests * Lint * Check Action arguments * Add alternative Action to formoperators * lint * Rework action * lint * Add errors to action + test public api * Modify compute_energy_norm to alternative def * Add hashing to baseform instances * Add some comments and lint * Hash in matrix * Add test for action on action * remove eq in form as redundant * lint + amend tests * Fix Issue with adjoint * small change to arguments method of adjoint class * lint * lint * more style * cleanup Action * cleanup Action * cleanup adjoint * use correct action * sanitise argument creation * Shut up Flake8 W503 is no longer PEP8 best practice. E129 causes spurious problems on long `if` statements. * clean up Matrix * Clean up duals * Clean up functionspace * Remove unneeded signature from Matrix * cleanup form * Check trivial case for Action and Adjoint * Update possible right term for Action * Take into account various BaseForm objects in expand_derivatives * Add BaseForm in __init__ * Add BaseForm in as_ufl * Update action * Update Cofunction and Coargument for when they take in a primal space * Add equals to FormSum * Add __eq__ to Action * Add __eq__ to Adjoint * Add __eq__ and __hash__ to Coargument * Fix typos * Refactor analysis.py * Add BaseFormDerivative * Fix for arguments, coefficients and function spaces * Fix hash for coefficients, arguments and function spaces + some more equality fixes * Draft BaseForm diff * Draft: Refactor UFL types using UFLType * Fix __eq__ for Coargument * Add UFLType handler as the default handler + Move UFLType to ufl_type.py * Add ufl_operands and _ufl_compute_hash to BaseForm objects for MultiFunction traversal * Add Matrix/Cofunction/Coargument differentiation + Add some ufl_type handlers * Push arguments analysis through BaseFormDerivative * Add Action differentiation * Add tests for BaseForm differentiation * Add Adjoint(Adjoint(.)) = Id * Fix Action differentiation * Matrix derivative is always 0 (since we can't differentiate wrt a Matrix) * Update _handle_derivative_arguments * Fix _analyze_form_arguments for FormSum * Update FormSum and tests * Fix ExprList * Add Adjoint differentiation * Add handlers for Action/Adjoint/FormSum in map_integrands * Use pytest.raises * Change __eq__ to equals for dual objects * Update traversal.py * Replace expr handler by ufl_type in Replacer * Refactor UFL type system * Address comments from the PR * Update arguments analysis for FormSum * Fix lint * Extend Action distribution over ufl.Sum * Add test for Action distributivity wrt FormSum and Sum * Enable Matrix on the rhs of Action * Add ZeroBaseForm * Add tests for ZeroBaseForm * Update author info * Fix Cofunction's argument * Update expand_derivatives * Clean way of getting action arguments and check function spaces * Rename _get_action_arguments * Fix ZeroBaseForm simplification for BaseForm * Swap ZeroBaseForm's arguments for adjoint * Check arguments when summing a ZeroBaseForm * Fix argument contraction with CoefficientDerivative * Clean up * Fix __str__ for Action/Adjoint * Add/Fix comments * Fix typo * Update warnings * Clean up docstrings + fix flake8 Co-authored-by: Rob Kirby <[email protected]> Co-authored-by: Justincrum <[email protected]> Co-authored-by: India Marsden <[email protected]> Co-authored-by: David Ham <[email protected]> Co-authored-by: nbouziani <[email protected]> Co-authored-by: nbouziani <[email protected]>
Co-authored-by: Matthew Scroggs <[email protected]>
) * start replacing ufl.log * change * remove comment * petsc arch * restore comment * remove more custom logging * flake * remove more logging * remove dicts util (almost entirely unused) * remove more logging * remove ufl.log * flake * fix tests * dolfinx branch * forked TSFC * revert to main branches
…niCS#125) Co-authored-by: David A. Ham <[email protected]>
* Updates to avoid ufl_domain deprecation warnings. * Small fix * Formatting fix * Undo change for integrals
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Main changes in the upstream are:
register_element2
Firedrake tests firedrakeproject/firedrake#2787