FEI  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SolnCheck.hpp
1 #ifndef _SolnCheck_hpp_
2 #define _SolnCheck_hpp_
3 
4 /*--------------------------------------------------------------------*/
5 /* Copyright 2005 Sandia Corporation. */
6 /* Under the terms of Contract DE-AC04-94AL85000, there is a */
7 /* non-exclusive license for use of this work by or on behalf */
8 /* of the U.S. Government. Export of this program may require */
9 /* a license from the United States Government. */
10 /*--------------------------------------------------------------------*/
11 
12 #include "fei_FillableMat.hpp"
13 
14 namespace SolnCheck {
15  int readSoln(const char* baseName, int np, fei::FillableMat& solution);
16 
17  int compareSoln(fei::FillableMat& solution1, fei::FillableMat& solution2,
18  double tol=1.e-3);
19 
20  int readMatrix(const char* baseName, int np, fei::FillableMat& matrix);
21 
22  int compareMatrices(fei::FillableMat& mat1, fei::FillableMat& mat2);
23 
24  int checkSolution(int localProc, int numProcs,
25  const char* solnFileName, const char* checkFileName,
26  const char* extension,
27  int solveCounter);
28 }
29 
30 #endif // _SolnCheck_hpp_
31