00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef CHECKING_TOOLS_H
00030 #define CHECKING_TOOLS_H
00031
00032 #include "Epetra_ConfigDefs.h"
00033
00034 #include "Epetra_Comm.h"
00035 #include "Epetra_LAPACK.h"
00036 #include "Epetra_LocalMap.h"
00037 #include "Epetra_Map.h"
00038 #include "Epetra_MultiVector.h"
00039 #include "Epetra_Operator.h"
00040 #include "Epetra_Vector.h"
00041
00042 class CheckingTools {
00043
00044 private:
00045
00046 const Epetra_Comm &MyComm;
00047
00048 public:
00049
00050 CheckingTools(const Epetra_Comm &_Comm);
00051
00052 double errorOrthogonality(const Epetra_MultiVector *X, const Epetra_MultiVector *R,
00053 const Epetra_Operator *M = 0) const;
00054
00055 double errorOrthonormality(const Epetra_MultiVector *X, const Epetra_Operator *M = 0) const;
00056
00057 double errorEquality(const Epetra_MultiVector *X, const Epetra_MultiVector *MX,
00058 const Epetra_Operator *M = 0) const;
00059
00060 int errorSubspaces(const Epetra_MultiVector &Q, const Epetra_MultiVector &Qex,
00061 const Epetra_Operator *M) const;
00062
00063 void errorEigenResiduals(const Epetra_MultiVector &Q, double *lambda,
00064 const Epetra_Operator *K, const Epetra_Operator *M,
00065 double *normWeight = 0) const;
00066
00067 int errorLambda(double *continuous, double *discrete, int numDiscrete, double *lambda,
00068 int nev) const;
00069
00070 int inputArguments(const int &numEigen, const Epetra_Operator *K,
00071 const Epetra_Operator *M, const Epetra_Operator *P,
00072 const Epetra_MultiVector &Q, const int &minSize) const;
00073
00074 };
00075
00076
00077 #endif
00078