NonlinearSolverSelector();
/**
- * Constructor, selecting the solver and other parametersspecified in
+ * Constructor, selecting the solver and other parameters specified in
* @p additional_data.
+ *
+ * @deprecated Use the other constructor with MPI_Comm instead.
*/
+ DEAL_II_DEPRECATED
NonlinearSolverSelector(const AdditionalData &additional_data);
/**
template <typename VectorType>
-NonlinearSolverSelector<VectorType>::NonlinearSolverSelector() = default;
+NonlinearSolverSelector<VectorType>::NonlinearSolverSelector()
+ : mpi_communicator(MPI_COMM_SELF)
+{}
NonlinearSolverSelector<VectorType>::NonlinearSolverSelector(
const AdditionalData &additional_data)
: additional_data(additional_data)
+ , mpi_communicator(MPI_COMM_SELF)
{
set_data(additional_data);
}
typename NLSolve::AdditionalData additional_data;
additional_data.solver_type = SOLVER;
- NLSolve nonlinear_solver(additional_data);
+ NLSolve nonlinear_solver(additional_data, MPI_COMM_WORLD);
nonlinear_solver.reinit_vector = [&](Vector<double> &x) {
x.reinit(dof_handler.n_dofs());