Revision 1602

trunk/src/nh99/lmnewton.cpp (revision 1602)
232 232
    }
233 233
    else
234 234
    {
235
      char * end;
235
      char* end;
236 236
      _crit=strtod(ad_comm::argv[on+1],&end);
237 237
      if (_crit<=0)
238 238
      {
239 239
        cerr << "Usage -crit option needs positive number  -- ignored" << endl;
240
        _crit=0.0;
241 240
      }
242 241
    }
243 242
  }
trunk/src/nh99/shared1.cpp (revision 1602)
69 69
      int  jmin=bmap(i).indexmin();
70 70
      int  jmax=bmap(i).indexmax();
71 71

  
72
      int ii1;
72
      int ii1 = 0;
73 73
      for (int j=jmin;j<=jmax;j++)
74 74
      {
75 75
        dvar_vector& v=(*this)(bmap(i,j,1),bmap(i,j,2));
trunk/src/nh99/mc_scale.cpp (revision 1602)
20 20
 */
21 21
int initial_params::montecarlo_scale(const dvector& d, const dvector& x)
22 22
{
23
  int ii=1;
24
  for (int i=0;i<num_initial_params;i++)
23
  int ii = 1;
24
  for (int i = 0; i < num_initial_params; i++)
25 25
  {
26 26
    //if ((varsptr[i])->phase_start <= current_phase)
27
    if (withinbound(0,(varsptr[i])->phase_start,current_phase))
28
	(varsptr[i])->mc_scale(d,x,ii);
29
    }
30
    return ii-1;
27
    if (withinbound(0, (varsptr[i])->phase_start, current_phase))
28
      (varsptr[i])->mc_scale(d,x,ii);
31 29
  }
30
  return ii - 1;
31
}
32 32

  
33 33
/**
34 34
 * Description not yet available.

Also available in: Unified diff