Amesos Package Browser (Single Doxygen Collection) Development
SparseSolverResult.h
Go to the documentation of this file.
00001 /*
00002 // @HEADER
00003 // ***********************************************************************
00004 // 
00005 //                Amesos: Direct Sparse Solver Package
00006 //                 Copyright (2004) Sandia Corporation
00007 // 
00008 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
00009 // license for use of this work by or on behalf of the U.S. Government.
00010 // 
00011 // This library is free software; you can redistribute it and/or modify
00012 // it under the terms of the GNU Lesser General Public License as
00013 // published by the Free Software Foundation; either version 2.1 of the
00014 // License, or (at your option) any later version.
00015 //  
00016 // This library is distributed in the hope that it will be useful, but
00017 // WITHOUT ANY WARRANTY; without even the implied warranty of
00018 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019 // Lesser General Public License for more details.
00020 //  
00021 // You should have received a copy of the GNU Lesser General Public
00022 // License along with this library; if not, write to the Free Software
00023 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00024 // USA
00025 // Questions? Contact Michael A. Heroux (maherou@sandia.gov) 
00026 // 
00027 // ***********************************************************************
00028 // @HEADER
00029 */
00030 
00031 #ifndef SPARSESOLVERRESULT
00032 #define SPARSESOLVERRESULT
00033 #include "Epetra_Object.h"
00034 const double UnUsedDbl = 13e130;
00035 
00036 class SparseSolverResult : public Epetra_Object { 
00037   
00038  public:
00039   SparseSolverResult() :  
00040     first_time( UnUsedDbl ), middle_time( UnUsedDbl ), 
00041     last_time( UnUsedDbl ), total_time( UnUsedDbl ),
00042     error( UnUsedDbl), residual(UnUsedDbl), 
00043     Anorm( UnUsedDbl ), Xnorm( UnUsedDbl ), Bnorm( UnUsedDbl ) 
00044   { 
00045   ; } ; 
00046   ~SparseSolverResult(){};
00047 
00048   void Set_First_Time ( double First_Time_in ) { first_time = First_Time_in; } ; 
00049   inline double Get_First_Time ( ) { return first_time ; } ; 
00050 
00051   void Set_Middle_Time ( double Middle_Time_in ) { middle_time = Middle_Time_in; } ; 
00052   inline double Get_Middle_Time ( ) { return middle_time ; } ; 
00053 
00054   void Set_Last_Time ( double Last_Time_in ) { last_time = Last_Time_in; } ; 
00055   inline double Get_Last_Time ( ) { return last_time ; } ; 
00056 
00057   void Set_Total_Time ( double Total_Time_in ) { total_time = Total_Time_in; } ; 
00058   inline double Get_Total_Time ( ) { return total_time ; } ; 
00059 
00060   void Set_Bnorm ( double bnorm_in ) { Bnorm = bnorm_in; } ; 
00061   inline double Get_Bnorm ( ) { return Bnorm ; } ; 
00062   void Set_Xnorm ( double xnorm_in ) { Xnorm = xnorm_in; } ; 
00063   inline double Get_Xnorm ( ) { return Xnorm ; } ; 
00064   void Set_Residual ( double residual_in ) { residual = residual_in; } ; 
00065   inline double Get_Residual ( ) { return residual ; } ; 
00066   void Set_Error ( double error_in ) { error = error_in; } ; 
00067   inline double Get_Error ( ) { return error; } ; 
00068   void Set_Anorm ( double anorm_in ) { Anorm = anorm_in; } ; 
00069   inline double Get_Anorm ( ) { return Anorm; } ; 
00070 
00071   virtual void Print(std::ostream & os) const;
00072   virtual void PrintSummary(std::ostream & os) const;
00073 
00074 
00075  private:
00076   double first_time ;
00077   double middle_time ;
00078   double last_time ;
00079   double total_time ;
00080   double error ;
00081   double residual ;
00082   double Anorm ;
00083   double Xnorm ;
00084   double Bnorm ;
00085 } ;
00086 
00087 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines