delphi_cb
 All Classes Namespaces Files Functions Variables Macros
solver_exceptions.h
1 #ifndef SOLVER_EXCEPTIONS_H_
2 #define SOLVER_EXCEPTIONS_H_
3 
4 #include "../interface/exceptions.h"
5 
7 {
8  public:
9  CUnknownBioModelSolver(const string& strBioModel, const string& strNumSolver)
10  {
11  cerr << "BIOMODEL = " << strBioModel << " AND SOLVER = " << strNumSolver << " CANNOT BE PARIED.\n";
12  cerr << "(CHECK THE PARAMETER FILE AND TRY AGAIN... \n";
13  }
14 };
15 
17 {
18  public:
19  CDirectEpsilonMap(const int& iDirectEpsMap)
20  {
21  cerr << "idirectalg = " << iDirectEpsMap << " IN SETCRG THIS PART NEEDS TO BE CHANGED.\n";
22  cerr << "(CHECK THE PARAMETER FILE AND TRY AGAIN... \n";
23  }
24 };
25 
27 {
28  public:
29  CUnknownBndyCondition(const int& iBndyType)
30  {
31  cerr << "UNRECOGNIZED BOUNDARY CONDITION BNDCON = " << iBndyType << " (CHECK THE PARAMETER FILE AND TRY AGAIN)\n";
32  }
33 };
34 
36 {
37  public:
38  CSettingBndyError(const int& iBndyType)
39  {
40  cerr << "PROBLEM OCCURS WHEN SETTING BOUNDARY CONDITION BNDCON = " << iBndyType << " (PROGRAM EXITS...)\n";
41  }
42 };
43 
45 {
46  public:
47  CUnknownPhiiFile(const string& strPhiiFile)
48  {
49  cerr << "NP POTL MAP FOR FOCUSSING BOUNDARY CONDITIONS (FILE " << strPhiiFile << " DOES NOT EXISITS)\n";
50  }
51 };
52 
53 class COutsideFocus : public CException
54 {
55  public:
56  COutsideFocus(const delphi_real& fScale1,const SGrid<delphi_real>& fgBoxCenter1,const delphi_real& fScale,const SGrid<delphi_real>& fgBoxCenter)
57  {
58  cerr << "PART OF NEW GRID LIES OUTSIDE OLD GRID\n";
59  cerr << "CHECK SCALING OF BOTH GRIDS\n";
60  cerr << "OLD SCALE:\n";
61  cerr << "scale (grids/A) : " << fScale1 << endl;
62  cerr << "object centre at (A) : " << fgBoxCenter1.nX << fgBoxCenter1.nY << fgBoxCenter1.nZ << endl;
63  cerr << "NEW SCALE:\n";
64  cerr << "scale (grids/A) : " << fScale << endl;
65  cerr << "object centre at (A) : " << fgBoxCenter.nX << fgBoxCenter.nY << fgBoxCenter.nZ << endl;
66  }
67 };
68 
70 {
71  public:
72  CZeorLinIterateNum(const bool& bAutoConverge, const int& iLinIterateNum)
73  {
74  cerr << "AUTOC = " << bAutoConverge << " AND LINIT = " << iLinIterateNum << " ";
75  cerr << "(PROGRAM DOES NOT KNOW WHAT TO DO AND THEREFORE EXITS...) \n";
76  }
77 };
78 
80 {
81  public:
82  CCrgedPtsInSolution(const delphi_integer& ico)
83  {
84  cerr << "OUT OF THEM, " << ico << " CHARGED POINT(S) ARE IN SOLUTION ";
85  cerr << "(INCREASED RESOLUTION IS NEEDED) \n";
86  }
87 };
88 
89 class CSmallRelaxParam : public CWarning
90 {
91  public:
93  {
94  cerr << "CONVERGENCE IS MORE RELIABLE IF RELAXATION PARAMETER > 0.05 ";
95  cerr << "(IT IS ADVISABLE TO INCREASE IT) \n";
96  }
97 };
98 
99 
100 #endif /* SOLVER_EXCEPTIONS_H_ */
Definition: solver_exceptions.h:53
Definition: solver_exceptions.h:6
Definition: solver_exceptions.h:44
Definition: solver_exceptions.h:16
Definition: exceptions.h:41
Definition: exceptions.h:20
Definition: solver_exceptions.h:89
Definition: solver_exceptions.h:26
Definition: solver_exceptions.h:69
Definition: solver_exceptions.h:35
Definition: solver_exceptions.h:79