Revision 752 branches/threaded2/src/nh99/mod_mc3.cpp

mod_mc3.cpp (revision 752)
18 18
  int ii=1;
19 19
  for (int i=0;i<num_initial_params;i++)
20 20
  {
21
    if (withinbound(0,(varsptr[i])->phase_start,current_phase))
21
    if (withinbound(0,((*varsptr)[i])->phase_start,current_phase))
22 22
    {
23
      (varsptr[i])->add_value(y,x,ii,ll,diag);
23
      ((*varsptr)[i])->add_value(y,x,ii,ll,diag);
24 24
    }
25 25
  }
26 26
}
......
29 29
  int ii=1;
30 30
  for (int i=0;i<num_initial_params;i++)
31 31
  {
32
    if (withinbound(0,(varsptr[i])->phase_start,current_phase))
32
    if (withinbound(0,((*varsptr)[i])->phase_start,current_phase))
33 33
    {
34
      (varsptr[i])->get_jacobian(y,jac,ii);
34
      ((*varsptr)[i])->get_jacobian(y,jac,ii);
35 35
    }
36 36
  }
37 37
}

Also available in: Unified diff