Skip to content
#

fenics

Here are 89 public repositories matching this topic...

precice
michalhabera
michalhabera commented Nov 19, 2020

The actual ghostUpdate is truly needed only in very few places, for most local operations one knows the value for ghosts without communication.

This

u.vector.copy(result=u0.vector)
u0.vector.ghostUpdate(addv=PETSc.InsertMode.INSERT, mode=PETSc.ScatterMode.FORWARD)

could become

with u0.vector.localForm() as loc0, u.vector.localForm() as loc:
    loc.copy(loc0)
``

Improve this page

Add a description, image, and links to the fenics topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the fenics topic, visit your repo's landing page and select "manage topics."

Learn more