mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 22:00:33 +05:00
Merge branch 'fix_el_mat_bbnd' into 'master'
fix el.mat for bbnd elements in 3D See merge request !40
This commit is contained in:
commit
8e7c043ef4
@ -72,8 +72,15 @@ NGX_INLINE DLL_HEADER Ng_Element Ngx_Mesh :: GetElement<1> (size_t nr) const
|
|||||||
ret.index = el.si;
|
ret.index = el.si;
|
||||||
if (mesh->GetDimension() == 2)
|
if (mesh->GetDimension() == 2)
|
||||||
ret.mat = mesh->GetBCNamePtr(el.si-1);
|
ret.mat = mesh->GetBCNamePtr(el.si-1);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (mesh->GetDimension() == 3){
|
||||||
|
ret.mat = &mesh->GetCD2Name(el.edgenr-1);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
ret.mat = nullptr;
|
ret.mat = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
ret.points.num = el.GetNP();
|
ret.points.num = el.GetNP();
|
||||||
ret.points.ptr = (int*)&(el[0]);
|
ret.points.ptr = (int*)&(el[0]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user