From 0d3003b48e1d9d965aa8fd1b835cfc68ad792c16 Mon Sep 17 00:00:00 2001 From: Sebastian Grimberg Date: Tue, 28 May 2024 21:35:08 -0700 Subject: [PATCH] Remove unneeded RestrictedCoefficient wrapper --- palace/models/surfacepostoperator.cpp | 36 +++++++++++---------------- 1 file changed, 15 insertions(+), 21 deletions(-) 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 }