diff --git a/palace/models/surfacepostoperator.cpp b/palace/models/surfacepostoperator.cpp index 0723e3a6b..fdde4140a 100644 --- a/palace/models/surfacepostoperator.cpp +++ b/palace/models/surfacepostoperator.cpp @@ -110,17 +110,14 @@ SurfacePostOperator::SurfaceFluxData::GetCoefficient(const mfem::ParGridFunction switch (type) { case SurfaceFluxType::ELECTRIC: - return std::make_unique< - RestrictedCoefficient>>( - attr_list, E, nullptr, mat_op, two_sided, center); + return std::make_unique>( + E, nullptr, mat_op, two_sided, center); case SurfaceFluxType::MAGNETIC: - return std::make_unique< - RestrictedCoefficient>>( - attr_list, nullptr, B, mat_op, two_sided, center); + return std::make_unique>( + nullptr, B, mat_op, two_sided, center); case SurfaceFluxType::POWER: - return std::make_unique< - RestrictedCoefficient>>( - attr_list, E, B, mat_op, two_sided, center); + return std::make_unique>( + E, B, mat_op, two_sided, center); } return {}; } @@ -169,21 +166,18 @@ SurfacePostOperator::InterfaceDielectricData::GetCoefficient( switch (type) { case InterfaceDielectricType::DEFAULT: - return std::make_unique>>( - attr_list, E, mat_op, t, epsilon, side_n_min); + return std::make_unique< + InterfaceDielectricCoefficient>( + E, mat_op, t, epsilon, side_n_min); case InterfaceDielectricType::MA: - return std::make_unique>>( - attr_list, E, mat_op, t, epsilon, side_n_min); + return std::make_unique>( + E, mat_op, t, epsilon, side_n_min); case InterfaceDielectricType::MS: - return std::make_unique>>( - attr_list, E, mat_op, t, epsilon, side_n_min); + return std::make_unique>( + E, mat_op, t, epsilon, side_n_min); case InterfaceDielectricType::SA: - return std::make_unique>>( - attr_list, E, mat_op, t, epsilon, side_n_min); + return std::make_unique>( + E, mat_op, t, epsilon, side_n_min); } return {}; // For compiler warning }