Overview
Comment:Added dtors to Solvers
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/numerical-algebraic-solution | trunk
Files: files | file ages | folders
SHA3-256: 9b9a6be2b1eb788ff7ef68892c500b127e1e9b1ac00ee6b6e3ed7fec4bf730dc
User & Date: geraint@users.sourceforge.net on 2001-07-13 03:07:59
Other Links: branch diff | manifest | tags
Context
2001-07-13
04:02:31
Implemented numerical algebraic solution for _ode2odes.oct. Leaf check-in: 120c923553 user: geraint@users.sourceforge.net tags: origin/numerical-algebraic-solution, trunk
03:07:59
Added dtors to Solvers check-in: 9b9a6be2b1 user: geraint@users.sourceforge.net tags: origin/numerical-algebraic-solution, trunk
2001-07-09
00:24:58
input rep: Removed input name mapping, left state name mapping. check-in: aba0a88b32 user: geraint@users.sourceforge.net tags: origin/numerical-algebraic-solution, trunk
Changes

Modified mttroot/mtt/lib/cc/mtt_HJ_Solver.hh from [da2fe34a04] to [0452c911f4].

16
17
18
19
20
21
22


23
24
25
26
27
28
29
	     const int nyz)
    : Solver (ae,npar,nu,nx,ny,nyz)
  { static_ptr = this; VARS = nyz; };
  
  static double
  f (double tryUi[], int nyz);
  


protected:

  void
  Solve (void);

  double
  best_nearby (double    	delta[],







>
>







16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
	     const int nyz)
    : Solver (ae,npar,nu,nx,ny,nyz)
  { static_ptr = this; VARS = nyz; };
  
  static double
  f (double tryUi[], int nyz);
  
  ~HJ_Solver (void) {};

protected:

  void
  Solve (void);

  double
  best_nearby (double    	delta[],

Modified mttroot/mtt/lib/cc/mtt_Hybrd_Solver.cc from [0cd37c06c4] to [db6613b9c5].

22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  static int convergences;
  static int progress_errors;
  static int limit_errors;
  static int unknown_errors;
  
  NLFunc fcn(&Hybrd_Solver::f_hybrd);
  NLEqn	 eqn(Solver::_ui,fcn);
  //  eqn.set_tolerance(0.01);
  Solver::_ui = eqn.solve(info);

  switch (info)
    {
    case 1:
      convergences++;
      break;







|







22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  static int convergences;
  static int progress_errors;
  static int limit_errors;
  static int unknown_errors;
  
  NLFunc fcn(&Hybrd_Solver::f_hybrd);
  NLEqn	 eqn(Solver::_ui,fcn);
  eqn.set_tolerance(0.000001);
  Solver::_ui = eqn.solve(info);

  switch (info)
    {
    case 1:
      convergences++;
      break;

Modified mttroot/mtt/lib/cc/mtt_Hybrd_Solver.hh from [79adf97ac2] to [a398dadfdb].

18
19
20
21
22
23
24


25
26
27
28
29
30
31
  : Solver (ae,npar,nu,nx,ny,nyz)
  {
    static_ptr = this;
  }

  static ColumnVector
  f_hybrd (const ColumnVector &tryUi);



protected:

  void
  Solve (void);

public:







>
>







18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  : Solver (ae,npar,nu,nx,ny,nyz)
  {
    static_ptr = this;
  }

  static ColumnVector
  f_hybrd (const ColumnVector &tryUi);

  ~Hybrd_Solver (void) {};

protected:

  void
  Solve (void);

public:

Modified mttroot/mtt/lib/cc/mtt_Reduce_Solver.hh from [b44a93cb60] to [64e757e6a7].

16
17
18
19
20
21
22


23
24
25
		 const int ny,
		 const int nyz)
    : Solver (ae,npar,nu,nx,ny,nyz)
  { ; };
	
  void
  Solve (void);



};
   







>
>



16
17
18
19
20
21
22
23
24
25
26
27
		 const int ny,
		 const int nyz)
    : Solver (ae,npar,nu,nx,ny,nyz)
  { ; };
	
  void
  Solve (void);

  ~Reduce_Solver (void) {};

};
   

Modified mttroot/mtt/lib/cc/mtt_Solver.hh from [0879e1fbca] to [12e52b9aa6].

27
28
29
30
31
32
33


34
35
36
37
38
39
40
  solve (const ColumnVector	&x,
	 const ColumnVector	&u,
	 const double		&t,
	 const ColumnVector	&par);
  
  ColumnVector
  eval (const ColumnVector	&ui);


  
protected:
  
  virtual void
  Solve (void) = 0;

protected:







>
>







27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
  solve (const ColumnVector	&x,
	 const ColumnVector	&u,
	 const double		&t,
	 const ColumnVector	&par);
  
  ColumnVector
  eval (const ColumnVector	&ui);

  virtual ~Solver (void) {};
  
protected:
  
  virtual void
  Solve (void) = 0;

protected:


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]