From: Daniel Arndt Date: Thu, 10 May 2018 00:40:45 +0000 (+0200) Subject: Aboid using std::bind1st in FE_Nedelec_SZ X-Git-Tag: v9.1.0-rc1~1161^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41e42e8944322904626e86a0ed898d356cd53ac6;p=dealii.git Aboid using std::bind1st in FE_Nedelec_SZ --- 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: