Skip to content
#

fenics

Here are 84 public repositories matching this topic...

precice
fsimonis
fsimonis commented May 12, 2021

Please describe the problem you are trying to solve.
The current implementation of the barycentric coordinates are overly complicated and explicitly require the normals of triangles or edges. There are simpler ways to implement this.

Describe the solution you propose.

  • Simplify math/barycenter.[ch]pp
  • Remove Edge::computeNormal() as it is unnecessary.

**Describe alternativ

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