Permalink
Browse files

Merge branch 'fix_definedon_nedelec_lo_space' into 'master'

lo nedelec space fix for getfe with definedon

See merge request jschoeberl/ngsolve!336
  • Loading branch information...
JSchoeberl committed Mar 27, 2018
2 parents cd91bcf + 3de92c1 commit 4cc9083071ea01fce7875d5f404921b3979d26f8
Showing with 15 additions and 0 deletions.
  1. +15 −0 comp/hcurlhdivfes.cpp
@@ -321,6 +321,21 @@ namespace ngcomp
FiniteElement & NedelecFESpace :: GetFE (ElementId ei, Allocator & lh) const
{
if(!DefinedOn(ei))
{
switch(ma->GetElType(ei))
{
case ET_TET: return * new (lh) HCurlDummyFE<ET_TET>();
case ET_PRISM: return * new (lh) HCurlDummyFE<ET_PRISM>();
case ET_PYRAMID: return * new (lh) HCurlDummyFE<ET_PYRAMID>();
case ET_TRIG: return * new (lh) HCurlDummyFE<ET_TRIG>();
case ET_QUAD: return * new (lh) HCurlDummyFE<ET_QUAD>();
case ET_SEGM: return * new (lh) HCurlDummyFE<ET_SEGM>();
case ET_HEX: return * new (lh) HCurlDummyFE<ET_HEX>();
default:
throw Exception ("Inconsistent element type in NedelecFESpace::GetFE");
}
}
switch (ma->GetElType(ei))
{
case ET_TET: return * new (lh) FE_NedelecTet1;

0 comments on commit 4cc9083

Please sign in to comment.