$(addsuffix $(EXEEXT),$(basename $(shell echo step-*/step-*.cc))) \
doxygen/*.o doxygen/*.exe */Makefile.dep
+# Create plain.cc in each subdirectory
+plain: $(steps)
+ for step in $(steps) ; do cd $$step; perl $D/doc/doxygen/tutorial/program2plain $$step.cc > plain.cc ; cd .. ; done
# for each build/run/clean target: strip the build- prefix of the
# target and build in that directory
// the default arguments (which are
// <code>SparseMatrix@<double@></code> and
// <code>Vector@<double@></code>):
- SolverCG<> cg (solver_control);
+ SolverCG<> solver (solver_control);
// Now solve the system of equations. The
// CG solver takes a preconditioner as its
// delve into this yet, so we tell it to
// use the identity operation as
// preconditioner:
- cg.solve (system_matrix, solution, system_rhs,
+ solver.solve (system_matrix, solution, system_rhs,
PreconditionIdentity());
// Now that the solver has done its
// job, the solution variable
void LaplaceProblem<dim>::solve ()
{
SolverControl solver_control (1000, 1e-12);
- SolverCG<> cg (solver_control);
- cg.solve (system_matrix, solution, system_rhs,
- PreconditionIdentity());
+ SolverCG<> solver (solver_control);
+ solver.solve (system_matrix, solution, system_rhs,
+ PreconditionIdentity());
// We have made one addition,
// though: since we suppress output
void LaplaceProblem<dim>::solve ()
{
SolverControl solver_control (1000, 1e-12);
- SolverCG<> cg (solver_control);
+ SolverCG<> solver (solver_control);
PreconditionSSOR<> preconditioner;
preconditioner.initialize(system_matrix, 1.2);
- cg.solve (system_matrix, solution, system_rhs,
- preconditioner);
+ solver.solve (system_matrix, solution, system_rhs,
+ preconditioner);
std::cout << " " << solver_control.last_step()
<< " CG iterations needed to obtain convergence."
void LaplaceProblem<dim>::solve ()
{
SolverControl solver_control (1000, 1e-12);
- SolverCG<> cg (solver_control);
+ SolverCG<> solver (solver_control);
PreconditionSSOR<> preconditioner;
preconditioner.initialize(system_matrix, 1.2);
- cg.solve (system_matrix, solution, system_rhs,
- preconditioner);
+ solver.solve (system_matrix, solution, system_rhs,
+ preconditioner);
hanging_node_constraints.distribute (solution);
}