Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

AssembleLinearization failed for skeleton formulation

More
2 years 3 months ago #4166 by Guosheng Fu
I was having trouble linearizing a DG skeleton term in AssembleLinearization.
Here is a mimimal code that produce a bug: The output result is expected to be 2 on the 0-0 entry, but it is 1 instead.
I haven't look into details how AssembleLinearization works for skeleton terms, but this seems to be a bug.
Code:
from ngsolve import * from ngsolve.meshes import Make1DMesh mesh = Make1DMesh(n=2) V = L2(mesh, dgjumps=True) u,v = V.TnT() a = BilinearForm(V) a += u**2*v*dx(skeleton=True) gfu = GridFunction(V) gfu.Set(1) a.AssembleLinearization(gfu.vec) print(a.mat)


Best,
Guosheng
Time to create page: 0.121 seconds