Permalink
Browse files

Merge branch 'fix_visualization_complex_definedon' into 'master'

fix visualization of complex gridfunction on partially defined fespace

See merge request !256
  • Loading branch information...
JSchoeberl committed Oct 24, 2017
2 parents 2fd20a0 + afa2f7f commit 85592b61a0c0963c9c1c05b9e20382272fd319c9
Showing with 6 additions and 6 deletions.
  1. +6 −6 comp/gridfunction.cpp
@@ -2879,19 +2879,19 @@ namespace ngcomp
// static Timer t("VisualizeCoefficientFunction::GetMultiSurfValue", 2); RegionTimer reg(t);
// static Timer t2("VisualizeCoefficientFunction::GetMultiSurfValue evaluate", 2);
VorB vb = (ma->GetDimension() == 3) ? BND : VOL;
ElementId ei(vb, selnr);
LocalHeapMem<100000> lh("viscf::getmultisurfvalue");
ElementTransformation & eltrans = ma->GetTrafo (ei, lh);
if (!cf->DefinedOn(eltrans)) return false;
if (cf -> IsComplex())
{
for (int i = 0; i < npts; i++)
GetSurfValue (selnr, facetnr, xref[i*sxref], xref[i*sxref+1], &values[i*svalues]);
return true;
}
VorB vb = (ma->GetDimension() == 3) ? BND : VOL;
ElementId ei(vb, selnr);
LocalHeapMem<100000> lh("viscf::getmultisurfvalue");
ElementTransformation & eltrans = ma->GetTrafo (ei, lh);
if (!cf->DefinedOn(eltrans)) return false;
FlatMatrix<> mvalues1(npts, GetComponents(), lh);

0 comments on commit 85592b6

Please sign in to comment.