Amesos Package Browser (Single Doxygen Collection)
Development
Toggle main menu visibility
Loading...
Searching...
No Matches
test
Test_Basic
SparseSolverResult.h
Go to the documentation of this file.
1
/*
2
// @HEADER
3
// ***********************************************************************
4
//
5
// Amesos: Direct Sparse Solver Package
6
// Copyright (2004) Sandia Corporation
7
//
8
// Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
9
// license for use of this work by or on behalf of the U.S. Government.
10
//
11
// This library is free software; you can redistribute it and/or modify
12
// it under the terms of the GNU Lesser General Public License as
13
// published by the Free Software Foundation; either version 2.1 of the
14
// License, or (at your option) any later version.
15
//
16
// This library is distributed in the hope that it will be useful, but
17
// WITHOUT ANY WARRANTY; without even the implied warranty of
18
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
// Lesser General Public License for more details.
20
//
21
// You should have received a copy of the GNU Lesser General Public
22
// License along with this library; if not, write to the Free Software
23
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
24
// USA
25
// Questions? Contact Michael A. Heroux (maherou@sandia.gov)
26
//
27
// ***********************************************************************
28
// @HEADER
29
*/
30
31
#ifndef SPARSESOLVERRESULT
32
#define SPARSESOLVERRESULT
33
#include "Epetra_Object.h"
34
const
double
UnUsedDbl
= 13e130;
35
36
class
SparseSolverResult
:
public
Epetra_Object {
37
38
public
:
39
SparseSolverResult
() :
40
first_time
(
UnUsedDbl
),
middle_time
(
UnUsedDbl
),
41
last_time
(
UnUsedDbl
),
total_time
(
UnUsedDbl
),
42
error
(
UnUsedDbl
),
residual
(
UnUsedDbl
),
43
Anorm
(
UnUsedDbl
),
Xnorm
(
UnUsedDbl
),
Bnorm
(
UnUsedDbl
)
44
{
45
; } ;
46
~SparseSolverResult
(){};
47
48
void
Set_First_Time
(
double
First_Time_in ) {
first_time
= First_Time_in; } ;
49
inline
double
Get_First_Time
( ) {
return
first_time
; } ;
50
51
void
Set_Middle_Time
(
double
Middle_Time_in ) {
middle_time
= Middle_Time_in; } ;
52
inline
double
Get_Middle_Time
( ) {
return
middle_time
; } ;
53
54
void
Set_Last_Time
(
double
Last_Time_in ) {
last_time
= Last_Time_in; } ;
55
inline
double
Get_Last_Time
( ) {
return
last_time
; } ;
56
57
void
Set_Total_Time
(
double
Total_Time_in ) {
total_time
= Total_Time_in; } ;
58
inline
double
Get_Total_Time
( ) {
return
total_time
; } ;
59
60
void
Set_Bnorm
(
double
bnorm_in ) {
Bnorm
= bnorm_in; } ;
61
inline
double
Get_Bnorm
( ) {
return
Bnorm
; } ;
62
void
Set_Xnorm
(
double
xnorm_in ) {
Xnorm
= xnorm_in; } ;
63
inline
double
Get_Xnorm
( ) {
return
Xnorm
; } ;
64
void
Set_Residual
(
double
residual_in ) {
residual
= residual_in; } ;
65
inline
double
Get_Residual
( ) {
return
residual
; } ;
66
void
Set_Error
(
double
error_in ) {
error
= error_in; } ;
67
inline
double
Get_Error
( ) {
return
error
; } ;
68
void
Set_Anorm
(
double
anorm_in ) {
Anorm
= anorm_in; } ;
69
inline
double
Get_Anorm
( ) {
return
Anorm
; } ;
70
71
virtual
void
Print
(std::ostream & os)
const
;
72
virtual
void
PrintSummary
(std::ostream & os)
const
;
73
74
75
private
:
76
double
first_time
;
77
double
middle_time
;
78
double
last_time
;
79
double
total_time
;
80
double
error
;
81
double
residual
;
82
double
Anorm
;
83
double
Xnorm
;
84
double
Bnorm
;
85
} ;
86
87
#endif
UnUsedDbl
const double UnUsedDbl
Definition
SparseSolverResult.h:34
SparseSolverResult::Get_Bnorm
double Get_Bnorm()
Definition
SparseSolverResult.h:61
SparseSolverResult::Get_Error
double Get_Error()
Definition
SparseSolverResult.h:67
SparseSolverResult::last_time
double last_time
Definition
SparseSolverResult.h:78
SparseSolverResult::Get_Middle_Time
double Get_Middle_Time()
Definition
SparseSolverResult.h:52
SparseSolverResult::Set_Xnorm
void Set_Xnorm(double xnorm_in)
Definition
SparseSolverResult.h:62
SparseSolverResult::Set_Last_Time
void Set_Last_Time(double Last_Time_in)
Definition
SparseSolverResult.h:54
SparseSolverResult::Set_Error
void Set_Error(double error_in)
Definition
SparseSolverResult.h:66
SparseSolverResult::Get_Anorm
double Get_Anorm()
Definition
SparseSolverResult.h:69
SparseSolverResult::Set_Anorm
void Set_Anorm(double anorm_in)
Definition
SparseSolverResult.h:68
SparseSolverResult::Bnorm
double Bnorm
Definition
SparseSolverResult.h:84
SparseSolverResult::SparseSolverResult
SparseSolverResult()
Definition
SparseSolverResult.h:39
SparseSolverResult::Xnorm
double Xnorm
Definition
SparseSolverResult.h:83
SparseSolverResult::middle_time
double middle_time
Definition
SparseSolverResult.h:77
SparseSolverResult::Get_Last_Time
double Get_Last_Time()
Definition
SparseSolverResult.h:55
SparseSolverResult::Set_Bnorm
void Set_Bnorm(double bnorm_in)
Definition
SparseSolverResult.h:60
SparseSolverResult::Print
virtual void Print(std::ostream &os) const
Definition
SparseSolverResult.cpp:32
SparseSolverResult::Get_Xnorm
double Get_Xnorm()
Definition
SparseSolverResult.h:63
SparseSolverResult::~SparseSolverResult
~SparseSolverResult()
Definition
SparseSolverResult.h:46
SparseSolverResult::error
double error
Definition
SparseSolverResult.h:80
SparseSolverResult::first_time
double first_time
Definition
SparseSolverResult.h:76
SparseSolverResult::Set_Total_Time
void Set_Total_Time(double Total_Time_in)
Definition
SparseSolverResult.h:57
SparseSolverResult::PrintSummary
virtual void PrintSummary(std::ostream &os) const
Definition
SparseSolverResult.cpp:41
SparseSolverResult::Set_First_Time
void Set_First_Time(double First_Time_in)
Definition
SparseSolverResult.h:48
SparseSolverResult::Set_Residual
void Set_Residual(double residual_in)
Definition
SparseSolverResult.h:64
SparseSolverResult::total_time
double total_time
Definition
SparseSolverResult.h:79
SparseSolverResult::Get_Total_Time
double Get_Total_Time()
Definition
SparseSolverResult.h:58
SparseSolverResult::residual
double residual
Definition
SparseSolverResult.h:81
SparseSolverResult::Set_Middle_Time
void Set_Middle_Time(double Middle_Time_in)
Definition
SparseSolverResult.h:51
SparseSolverResult::Get_Residual
double Get_Residual()
Definition
SparseSolverResult.h:65
SparseSolverResult::Get_First_Time
double Get_First_Time()
Definition
SparseSolverResult.h:49
SparseSolverResult::Anorm
double Anorm
Definition
SparseSolverResult.h:82
Generated by
1.17.0