Skip to content
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

Isolate petsc4y in Python interface #2703

Merged
merged 33 commits into from
Jul 4, 2023
Merged

Conversation

garth-wells
Copy link
Member

@garth-wells garth-wells commented Jul 1, 2023

Also:

  • Fixed a number of dolfinx::la::Vector functions for complex types.
  • Python documentation improvements.

@garth-wells garth-wells added bug Something isn't working enhancement New feature or request documentation Documentation improvements or fixes housekeeping Tidying and style improvements labels Jul 2, 2023
@garth-wells garth-wells marked this pull request as ready for review July 3, 2023 08:40
garth-wells and others added 2 commits July 4, 2023 19:26
Co-authored-by: Chris Richardson <chris@bpi.cam.ac.uk>
@garth-wells garth-wells added this pull request to the merge queue Jul 4, 2023
Merged via the queue into main with commit 08006c4 Jul 4, 2023
20 checks passed
@garth-wells garth-wells deleted the garth/isolate-petsc4py branch July 4, 2023 20:58
return PETSc.Vec().createGhostWithArray(ghosts, x.array, size=size, bsize=bs, comm=map.comm)


def create_petsc_vector(map, bs: int):
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should really have a type hint (dolfinx.common.IndexMap)?

jorgensd added a commit to jorgensd/dolfinx_mpc that referenced this pull request Jul 5, 2023
jorgensd added a commit to jorgensd/dolfinx-tutorial that referenced this pull request Jul 5, 2023
jorgensd added a commit to jorgensd/adios4dolfinx that referenced this pull request Jul 5, 2023
jorgensd added a commit to jorgensd/dolfinx-tutorial that referenced this pull request Jul 5, 2023
* Resolve #136

* Fixes related to: FEniCS/dolfinx#2703

* Update changelog
jorgensd added a commit to ComputationalPhysiology/oasisx that referenced this pull request Jul 5, 2023
jorgensd added a commit to jorgensd/adios4dolfinx that referenced this pull request Jul 5, 2023
jorgensd added a commit to ComputationalPhysiology/oasisx that referenced this pull request Jul 5, 2023
jorgensd added a commit to jorgensd/dolfinx_mpc that referenced this pull request Jul 5, 2023
* Fix mypy

* Fix bcs wrapper

* Deprecate `dolfinx::la::Vector::set` and access python array directly instead.
Other internal changes related to:
FEniCS/dolfinx#2703

* Use njit instead of jit to avoid deprecation warning

* `dolfinx.la.Vector.bs` -> `dolfinx.la.Vector.block_size`

* Fix boundingbox constructor

* Various more wrapper changes
jorgensd added a commit to jorgensd/dolfinx_ipcs that referenced this pull request Jul 6, 2023
jorgensd added a commit to jorgensd/dolfinx-tutorial that referenced this pull request Oct 12, 2023
* Improve workflow handling (#118)

* Create common action for all workflows and split them into multiple files

* Dokken/update fspace and wmtgs (#127)

* fix runs-on

* Minor improvements in linearelasticity.md (#124)

* Fix various things on release branch

* Try adding trame

* Revert fundamentals

* Membrane code

* More updates due to autoformatting

* Lagrange -> CG back conversion

* Change to github image

---------

Co-authored-by: Julius Herb <43179176+juliusgh@users.noreply.github.com>

* Update petsc arches

* Fix bounding boxes and more (#135)

* Start fixing code for nightly build

* rerun all files

* Try fixing subdomains

* Fix meshio

* PETSc python API update (#137)

* Resolve #136

* Fixes related to: FEniCS/dolfinx#2703

* Update changelog

* Make sure all notebooks run. Change to pathlib in some examples

* Api changes related to: FEniCS/dolfinx#2763 (#142)

* Bump version numbers

* Bump version numbers (#149)

* Fix petsc arch

---------

Co-authored-by: Julius Herb <43179176+juliusgh@users.noreply.github.com>
jorgensd added a commit to jorgensd/dolfinx-tutorial that referenced this pull request May 5, 2024
* Improve workflow handling (#118)

* Create common action for all workflows and split them into multiple files

* Dokken/update fspace and wmtgs (#127)

* fix runs-on

* Minor improvements in linearelasticity.md (#124)

* Fix various things on release branch

* Try adding trame

* Revert fundamentals

* Membrane code

* More updates due to autoformatting

* Lagrange -> CG back conversion

* Change to github image

---------

Co-authored-by: Julius Herb <43179176+juliusgh@users.noreply.github.com>

* Update petsc arches

* Fix bounding boxes and more (#135)

* Start fixing code for nightly build

* rerun all files

* Try fixing subdomains

* Fix meshio

* PETSc python API update (#137)

* Resolve #136

* Fixes related to: FEniCS/dolfinx#2703

* Update changelog

* Make sure all notebooks run. Change to pathlib in some examples

* Api changes related to: FEniCS/dolfinx#2763 (#142)

* Bump version numbers

* Bump version numbers (#149)

* Fix petsc arch

* Prepare v0.7.1 (#154)

* Merge branch 'main' into release and bump versions

* Delete obsolete file

* Temporary shift path in nightly test

* Make sure there are no warnigns in build

* Tabulation

* Updates compatible with nightly branch of DOLFINx (#156)

* Replace VectorElement and FiniteElement with `basix.ufl.element`.
Replace `dolfinx.fem.FunctionSpace` with `dolfinx.fem.functionspace`

* More updates

* And more

* Last vector element updates

* Bump pyvista and dolfinx to v0.7.2 (#159)

* Bump pyvista and dolfinx to v0.7.2

* remove -r

* Add further pyvista deps

* Bump versions

* Update petsc solver and pc links. Resolves #143 (#160)

* Fix typo and issue Issue on page /fem.html #122 (#161)

* Compute entity-cell connectivity before calling locate_dofs_topological.
Remove soon to be deprecated pyvista syntax for updating time dependent fields.
Fix range->np.arange conversion

* Update backend in workflow

* Fix broken link (#140) + http:// to https:// (#162)

* Run book build prior to parallel run

* Add back write frame

* Fix wrong link

* Fix typo in changelog

* Merge main into release (#189)

* Merge main into release

* Apply suggestions from code review

* Various fixes when reading through the diff

* Further fixes

* add missing checkout (#191)

* add missing checkout

* Add test docker on release PR and release (only push on tag

* Remove unused import

---------

Co-authored-by: Julius Herb <43179176+juliusgh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Documentation improvements or fixes enhancement New feature or request housekeeping Tidying and style improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants