Revision 692 branches/merge-trunk-davef/src/linad99/fmm.cpp

fmm.cpp (revision 692)
32 32
 * Description not yet available.
33 33
 * \param
34 34
 */
35
fmm::fmm(void)
36
{
37
  disk_save=0;
38
  ctlc_flag = 0;
39
  n=0;
40
  fbest=1.e+100;
41
}
42

  
35 43
fmm::fmm(int nvar,int _disk_save)
36 44
: w(1,4*nvar), funval(1,10),
37 45
  xx(0,nvar), gbest(0,nvar), xsave(0,nvar), gsave(0,nvar)
......
41 49
  ctlc_flag = 0;
42 50
  n = nvar;
43 51
  fbest=1.e+100;
44
//  cout << " In fmm::fmm(int nvar) nvar = " << nvar 
45
//       << " and n = " << n << "\n";
46 52
}
53

  
54
void fmm::allocate(int nvar,int _disk_save)
55
{
56
  w.allocate(1,4*nvar); funval.allocate(1,10);
57
  xx.allocate(0,nvar); gbest.allocate(0,nvar);
58
  xsave.allocate(0,nvar); gsave.allocate(0,nvar);
59
  disk_save=_disk_save;
60
  if (!disk_save) h.allocate(nvar); 
61
  ctlc_flag = 0;
62
  n = nvar;
63
  fbest=1.e+100;
64
}

Also available in: Unified diff