This commit is contained in:
Joachim Schöberl 2016-03-23 19:51:09 +01:00
parent 21199b565a
commit d801222dbf
2 changed files with 11 additions and 2 deletions

View File

@ -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;
}

View File

@ -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 !!!
}