#include <deal.II/base/thread_management.h>
#include <deal.II/base/utilities.h>
#include <deal.II/base/parallel.h>
+#include <deal.II/base/std_cxx11/bind.h>
#include <deal.II/grid/tria.h>
#include <deal.II/grid/tria_accessor.h>
#include <deal.II/grid/tria_iterator.h>
void
TimeDependent::solve_primal_problem ()
{
- do_loop (std::mem_fun(&TimeStepBase::init_for_primal_problem),
- std::mem_fun(&TimeStepBase::solve_primal_problem),
+ do_loop (std_cxx11::bind(&TimeStepBase::init_for_primal_problem, std_cxx11::_1),
+ std_cxx11::bind(&TimeStepBase::solve_primal_problem, std_cxx11::_1),
timestepping_data_primal,
forward);
}
void
TimeDependent::solve_dual_problem ()
{
- do_loop (std::mem_fun(&TimeStepBase::init_for_dual_problem),
- std::mem_fun(&TimeStepBase::solve_dual_problem),
+ do_loop (std_cxx11::bind(&TimeStepBase::init_for_dual_problem, std_cxx11::_1),
+ std_cxx11::bind(&TimeStepBase::solve_dual_problem, std_cxx11::_1),
timestepping_data_dual,
backward);
}
void
TimeDependent::postprocess ()
{
- do_loop (std::mem_fun(&TimeStepBase::init_for_postprocessing),
- std::mem_fun(&TimeStepBase::postprocess_timestep),
+ do_loop (std_cxx11::bind(&TimeStepBase::init_for_postprocessing, std_cxx11),
+ std_cxx11::bind(&TimeStepBase::postprocess_timestep, std_cxx11),
timestepping_data_postprocess,
forward);
}