Commit 3838c7fd authored by Sergey Yakovlev's avatar Sergey Yakovlev
Browse files

Added switch for the local face id in StdHexExp::v_DetFaceBasisKey


git-svn-id: https://gforge.sci.utah.edu/svn/nektar/trunk@4046 305cdda6-5ce1-45b3-a98d-dfc68c8b3305
parent d909da3a
......@@ -1065,6 +1065,55 @@ namespace Nektar
}
const LibUtilities::BasisKey StdHexExp::v_DetFaceBasisKey(
const int i, const int k) const
{
ASSERTL2(i >= 0 && i <= 6, "face id is out of range");
ASSERTL2(k >= 0 && k <= 1, "basis key id is out of range");
//temporary solution, need to add conditions based on face id
//also need to add check of the points type
switch(i)
{
case 0:
case 5:
switch(k)
{
case 0:
return GetBasis(0)->GetBasisKey();
break;
case 1:
return GetBasis(1)->GetBasisKey();
break;
}
break;
case 1:
case 3:
switch(k)
{
case 0:
return GetBasis(0)->GetBasisKey();
break;
case 1:
return GetBasis(2)->GetBasisKey();
break;
}
break;
case 2:
case 4:
switch(k)
{
case 0:
return GetBasis(1)->GetBasisKey();
break;
case 1:
return GetBasis(2)->GetBasisKey();
break;
}
break;
}
}
LibUtilities::BasisType StdHexExp::v_GetEdgeBasisType(const int i) const
{
ASSERTL2((i >= 0)&&(i <= 11),"edge id is out of range");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment