mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
1d fixes
This commit is contained in:
parent
21199b565a
commit
d801222dbf
@ -1918,6 +1918,14 @@ int Ng_GetVertex_SurfaceElements( int vnr, int* elems )
|
||||
elems[cnt++] = i+1;
|
||||
return cnt;
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
int cnt = 0;
|
||||
for (int i = 0; i < mesh->pointelements.Size(); i++)
|
||||
if (mesh->pointelements[i].pnum == vnr)
|
||||
elems[cnt++] = i+1;
|
||||
return cnt;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -525,9 +525,10 @@ namespace netgen
|
||||
double * x,
|
||||
double * dxdxi) const
|
||||
{
|
||||
PointIndex pnum = mesh->pointelements[elnr].pnum;
|
||||
PointIndex pnum = mesh->pointelements[elnr-1].pnum;
|
||||
if (x) x[0] = (*mesh)[pnum](0);
|
||||
if (dxdxi) dxdxi[0] = 0;
|
||||
// if (dxdxi) dxdxi[0] = 0;
|
||||
// Jacobi-matrix is 1 x 0 !!!
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user