From: Wolfgang Bangerth Date: Fri, 4 Sep 2020 17:00:10 +0000 (-0600) Subject: Use lambdas to make code more readable. X-Git-Tag: v9.3.0-rc1~1130^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10892%2Fhead;p=dealii.git Use lambdas to make code more readable. --- diff --git a/source/fe/fe_values.cc b/source/fe/fe_values.cc index 30a696b15f..34f1d8c6b8 100644 --- a/source/fe/fe_values.cc +++ b/source/fe/fe_values.cc @@ -4442,20 +4442,19 @@ FEValues::initialize(const UpdateFlags update_flags) // intermediate data used across calls to reinit. we can do this in parallel Threads::Task< std::unique_ptr::InternalDataBase>> - fe_get_data = Threads::new_task(&FiniteElement::get_data, - *this->fe, - flags, - *this->mapping, - quadrature, - this->finite_element_output); + fe_get_data = Threads::new_task([&]() { + return this->fe->get_data(flags, + *this->mapping, + quadrature, + this->finite_element_output); + }); + Threads::Task< std::unique_ptr::InternalDataBase>> mapping_get_data; if (flags & update_mapping) - mapping_get_data = Threads::new_task(&Mapping::get_data, - *this->mapping, - flags, - quadrature); + mapping_get_data = Threads::new_task( + [&]() { return this->mapping->get_data(flags, quadrature); }); this->update_flags = flags;