Revision 1602 trunk/src/nh99/mc_scale.cpp

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