@@ -110,17 +110,14 @@ SurfacePostOperator::SurfaceFluxData::GetCoefficient(const mfem::ParGridFunction
110110 switch (type)
111111 {
112112 case SurfaceFluxType::ELECTRIC:
113- return std::make_unique<
114- RestrictedCoefficient<BdrSurfaceFluxCoefficient<SurfaceFluxType::ELECTRIC>>>(
115- attr_list, E, nullptr , mat_op, two_sided, center);
113+ return std::make_unique<BdrSurfaceFluxCoefficient<SurfaceFluxType::ELECTRIC>>(
114+ E, nullptr , mat_op, two_sided, center);
116115 case SurfaceFluxType::MAGNETIC:
117- return std::make_unique<
118- RestrictedCoefficient<BdrSurfaceFluxCoefficient<SurfaceFluxType::MAGNETIC>>>(
119- attr_list, nullptr , B, mat_op, two_sided, center);
116+ return std::make_unique<BdrSurfaceFluxCoefficient<SurfaceFluxType::MAGNETIC>>(
117+ nullptr , B, mat_op, two_sided, center);
120118 case SurfaceFluxType::POWER:
121- return std::make_unique<
122- RestrictedCoefficient<BdrSurfaceFluxCoefficient<SurfaceFluxType::POWER>>>(
123- attr_list, E, B, mat_op, two_sided, center);
119+ return std::make_unique<BdrSurfaceFluxCoefficient<SurfaceFluxType::POWER>>(
120+ E, B, mat_op, two_sided, center);
124121 }
125122 return {};
126123}
@@ -169,21 +166,18 @@ SurfacePostOperator::InterfaceDielectricData::GetCoefficient(
169166 switch (type)
170167 {
171168 case InterfaceDielectricType::DEFAULT:
172- return std::make_unique<RestrictedCoefficient<
173- InterfaceDielectricCoefficient<InterfaceDielectricType::DEFAULT>>> (
174- attr_list, E, mat_op, t, epsilon, side_n_min);
169+ return std::make_unique<
170+ InterfaceDielectricCoefficient<InterfaceDielectricType::DEFAULT>>(
171+ E, mat_op, t, epsilon, side_n_min);
175172 case InterfaceDielectricType::MA:
176- return std::make_unique<RestrictedCoefficient<
177- InterfaceDielectricCoefficient<InterfaceDielectricType::MA>>>(
178- attr_list, E, mat_op, t, epsilon, side_n_min);
173+ return std::make_unique<InterfaceDielectricCoefficient<InterfaceDielectricType::MA>>(
174+ E, mat_op, t, epsilon, side_n_min);
179175 case InterfaceDielectricType::MS:
180- return std::make_unique<RestrictedCoefficient<
181- InterfaceDielectricCoefficient<InterfaceDielectricType::MS>>>(
182- attr_list, E, mat_op, t, epsilon, side_n_min);
176+ return std::make_unique<InterfaceDielectricCoefficient<InterfaceDielectricType::MS>>(
177+ E, mat_op, t, epsilon, side_n_min);
183178 case InterfaceDielectricType::SA:
184- return std::make_unique<RestrictedCoefficient<
185- InterfaceDielectricCoefficient<InterfaceDielectricType::SA>>>(
186- attr_list, E, mat_op, t, epsilon, side_n_min);
179+ return std::make_unique<InterfaceDielectricCoefficient<InterfaceDielectricType::SA>>(
180+ E, mat_op, t, epsilon, side_n_min);
187181 }
188182 return {}; // For compiler warning
189183}
0 commit comments