Xyce  6.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NLSTest.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------
2 // File : NLSTest.h
3 //
4 // Purpose : This function is the header file which contains class
5 // definitions for the nonlinear solver package test program.
6 //
7 // Special Notes :
8 //
9 // Creator : Eric Keiter, SNL, Parallel Computational Sciences
10 //
11 // Creation Date : 5/01/00
12 //-----------------------------------------------------------------------------
13 
14 
15 #ifndef _NLSTEST_H
16 #define _NLSTEST_H
17 
18 // ---------- Standard Includes ----------
19 #include <iostream>
20 #include <vector>
21 #include <list>
22 #include <string>
23 
24 // ---------- Xyce Includes ----------
25 #include <N_NLS_Manager.h>
26 #include <N_ERH_ErrorMgr.h>
27 #include <N_NLS_Misc.h>
28 #include <N_UTL_Xyce.h>
29 
30 // ---------- Forward Declarations ----------
31 class N_LOA_Loader;
32 class N_LOA_LoaderMgr;
33 class N_DEV_DeviceMgr;
34 class N_LAS_LAFactory;
35 class N_LAS_MultiVector;
36 class N_LAS_Matrix;
38 
39 //-----------------------------------------------------------------------------
40 // Class : NLSTestor
41 // Purpose : This is the top level class for the nonlinear solver testing
42 // program. The member function, RunTests, is the "main"
43 // function, essentially.
44 // Special Notes :
45 // Creator : Eric Keiter, SNL, Parallel Computational Sciences
46 // Creation Date : 5/01/00
47 //-----------------------------------------------------------------------------
48 class NLSTestor
49 {
50  // functions:
51 public:
52  NLSTestor();
53  ~NLSTestor();
54 
55  bool runTests(int iargs, char *cargs[]);
56 
57 protected:
58 
59 private:
60  bool doAllocations();
61  bool doRegistrations();
62  bool doDeAllocations();
63 
64  bool doInitialization();
65  bool doSolve();
66 
67 
68  // attributes
69 public:
70 
71 protected:
72 
73 private:
75  N_LAS_IterativeSolver * LAS_SolverPtr_;
76  N_LAS_Matrix * LAS_MatrixPtr_;
77  N_LAS_MultiVector * LAS_RHSVecPtr_;
78  N_LAS_MultiVector * LAS_SolVecPtr_;
79  N_LOA_LoaderMgr * LOA_LoaderMgrPtr_;
80  N_LOA_Loader * LOA_LoaderPtr_;
82  N_ERH_ErrorMgr * ERH_Ptr_;
84 
85  int iargs;
86  char **cargs;
87 };
88 
89 #endif
90 
91