FEI Version of the Day
SolnCheck.hpp
00001 #ifndef _SolnCheck_hpp_
00002 #define _SolnCheck_hpp_
00003 
00004 /*--------------------------------------------------------------------*/
00005 /*    Copyright 2005 Sandia Corporation.                              */
00006 /*    Under the terms of Contract DE-AC04-94AL85000, there is a       */
00007 /*    non-exclusive license for use of this work by or on behalf      */
00008 /*    of the U.S. Government.  Export of this program may require     */
00009 /*    a license from the United States Government.                    */
00010 /*--------------------------------------------------------------------*/
00011 
00012 #include "fei_FillableMat.hpp"
00013 
00014 namespace SolnCheck {
00015   int readSoln(const char* baseName, int np, fei::FillableMat& solution);
00016 
00017   int compareSoln(fei::FillableMat& solution1, fei::FillableMat& solution2,
00018        double tol=1.e-3);
00019 
00020   int readMatrix(const char* baseName, int np, fei::FillableMat& matrix);
00021 
00022   int compareMatrices(fei::FillableMat& mat1, fei::FillableMat& mat2);
00023 
00024   int checkSolution(int localProc, int numProcs,
00025         const char* solnFileName, const char* checkFileName,
00026         const char* extension,
00027         int solveCounter);
00028 }
00029 
00030 #endif // _SolnCheck_hpp_
00031 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends