DUNE PDELab (2.8)

utility.hh
1#ifndef DUNE_PDELAB_SOLVER_UTILITY_HH
2#define DUNE_PDELAB_SOLVER_UTILITY_HH
3
4namespace Dune {
5 namespace PDELab {
6
7 template <typename RFType>
8 struct PDESolverResult : LinearSolverResult<RFType>
9 {
10 RFType first_defect; // the first defect
11 RFType defect; // the final defect
12 double assembler_time; // Cumulative time for matrix assembly
13 double linear_solver_time; // Cumulative time for linear solver
14 int linear_solver_iterations; // Total number of linear iterations
15
16 PDESolverResult()
17 {
18 clear();
19 }
20
21 void clear()
22 {
23 LinearSolverResult<RFType>::clear();
24 first_defect = 0.0;
25 defect = 0.0;
26 assembler_time = 0.0;
27 linear_solver_time = 0.0;
28 linear_solver_iterations = 0;
29 }
30 };
31
32 } // namespace PDELab
33} // namespace Dune
34
35#endif
Dune namespace.
Definition: alignedallocator.hh:11
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 22, 23:30, 2024)