From 41e42e8944322904626e86a0ed898d356cd53ac6 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 10 May 2018 02:40:45 +0200 Subject: [PATCH] Aboid using std::bind1st in FE_Nedelec_SZ --- source/fe/fe_nedelec_sz.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/fe/fe_nedelec_sz.cc b/source/fe/fe_nedelec_sz.cc index f2acd8c33d..487f39c6fa 100644 --- a/source/fe/fe_nedelec_sz.cc +++ b/source/fe/fe_nedelec_sz.cc @@ -985,11 +985,11 @@ void FE_NedelecSZ::fill_edge_values(const typename Triangulation:: { std::transform (edge_sigma_values[m].begin(), edge_sigma_values[m].end(), edge_sigma_values[m].begin(), - std::bind1st (std::multiplies (), static_cast(edge_sign[m]))); + [&](const double edge_sigma_value) {return edge_sign[m]*edge_sigma_value;}); std::transform (edge_sigma_grads[m].begin(), edge_sigma_grads[m].end(), edge_sigma_grads[m].begin(), - std::bind1st (std::multiplies (), static_cast(edge_sign[m]))); + [&](const double edge_sigma_grad) {return edge_sign[m]*edge_sigma_grad;}); } // If we want to generate shape gradients then we need second derivatives of the 1d polynomials, @@ -1131,10 +1131,10 @@ void FE_NedelecSZ::fill_edge_values(const typename Triangulation:: { std::transform (edge_sigma_values[m].begin(), edge_sigma_values[m].end(), edge_sigma_values[m].begin(), - std::bind1st (std::multiplies (), static_cast(edge_sign[m]))); + [&](const double edge_sigma_value) {return edge_sign[m]*edge_sigma_value;}); std::transform (edge_sigma_grads[m].begin(), edge_sigma_grads[m].end(), edge_sigma_grads[m].begin(), - std::bind1st (std::multiplies (), static_cast(edge_sign[m]))); + [&](const double edge_sigma_grad) {return edge_sign[m]*edge_sigma_grad;}); } // Now calculate the edge-based shape functions: -- 2.39.5