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

model3.cpp (revision 752)
11 11
    for (int i=0;i<num_initial_params;i++)
12 12
    {
13 13
      //if ((varsptr[i])->phase_start <= current_phase)
14
      if (withinbound(0,(varsptr[i])->phase_start,current_phase))
14
      if (withinbound(0,((*varsptr)[i])->phase_start,current_phase))
15 15
      {
16
        (varsptr[i])->copy_value_to_vector(x,ii);
16
        ((*varsptr)[i])->copy_value_to_vector(x,ii);
17 17
      }
18 18
    }
19 19
  }
......
93 93
    for (int i=0;i<num_initial_params;i++)
94 94
    {
95 95
      //if ((varsptr[i])->phase_start <= current_phase)
96
      if (withinbound(0,(varsptr[i])->phase_start,current_phase))
96
      if (withinbound(0,((*varsptr)[i])->phase_start,current_phase))
97 97
      {
98
        (varsptr[i])->restore_value_from_vector(x,ii);
98
        ((*varsptr)[i])->restore_value_from_vector(x,ii);
99 99
      }
100 100
    }
101 101
  }

Also available in: Unified diff