fix up a shadowing/scope issue

This commit is contained in:
Robert W. Anderson
2022-05-18 22:24:01 -07:00
parent c2c32d8f4c
commit 534c0c5c3b
+2 -1
View File
@@ -463,7 +463,6 @@ void ScalarFiniteElement::ScalarLocalL2Restriction(
// General "restriction", defined by L2 projection
double v[Geometry::MaxDim];
Vector vv(v, dim);
IntegrationPoint c_ip;
const int cs = coarse_fe.GetDof(), fs = this->GetDof();
R.SetSize(cs, fs);
@@ -487,6 +486,8 @@ void ScalarFiniteElement::ScalarLocalL2Restriction(
const IntegrationPoint &f_ip = ir.IntPoint(i);
this->CalcShape(f_ip, fine_shape);
Trans.Transform(f_ip, vv);
IntegrationPoint c_ip;
c_ip.Set(v, dim);
coarse_fe.CalcShape(c_ip, coarse_shape);
AddMult_a_VWt(f_ip.weight*Trans.Weight(), coarse_shape, fine_shape,