mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
fix mpi mesh curving
This commit is contained in:
parent
287256a626
commit
55203ae730
@ -1295,10 +1295,17 @@ namespace netgen
|
|||||||
|
|
||||||
Point<3> pp = xa[jj];
|
Point<3> pp = xa[jj];
|
||||||
// ref -> ProjectToSurface (pp, mesh.GetFaceDescriptor(el.GetIndex()).SurfNr());
|
// ref -> ProjectToSurface (pp, mesh.GetFaceDescriptor(el.GetIndex()).SurfNr());
|
||||||
|
/**
|
||||||
|
with MPI and an interior surface element between volume elements assigned to different
|
||||||
|
procs, only one of them has the surf-el
|
||||||
|
**/
|
||||||
SurfaceElementIndex sei = top.GetFace2SurfaceElement (f+1)-1;
|
SurfaceElementIndex sei = top.GetFace2SurfaceElement (f+1)-1;
|
||||||
PointGeomInfo gi = mesh[sei].GeomInfoPi(1);
|
if (sei != SurfaceElementIndex(-1)) {
|
||||||
|
PointGeomInfo gi = mesh[sei].GeomInfoPi(1);
|
||||||
ref -> ProjectToSurface (pp, surfnr[facenr], gi);
|
ref -> ProjectToSurface (pp, surfnr[facenr], gi);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{ ref -> ProjectToSurface (pp, surfnr[facenr]); }
|
||||||
Vec<3> dist = pp-xa[jj];
|
Vec<3> dist = pp-xa[jj];
|
||||||
|
|
||||||
CalcTrigShape (order1, lami[fnums[1]]-lami[fnums[0]],
|
CalcTrigShape (order1, lami[fnums[1]]-lami[fnums[0]],
|
||||||
|
Loading…
Reference in New Issue
Block a user