Revision 752 branches/threaded2/src/df1b2-separable/nvarcall.cpp

nvarcall.cpp (revision 752)
19 19
    int nvar=0;
20 20
    for (int i=0;i<num_initial_params;i++)
21 21
    {
22
      nvar+= (varsptr[i])->size_count();
22
      nvar+= (varsptr->operator[](i))->size_count();
23 23
    }
24 24
    return nvar;
25 25
  }
......
34 34
    int ii=1;
35 35
    for (int i=0;i<num_initial_params;i++)
36 36
    {
37
      (varsptr[i])->set_value_inv(x,ii);
37
      (varsptr->operator[](i))->set_value_inv(x,ii);
38 38
    }
39 39
  }
40 40

  
......
50 50
    dvariable pen1;
51 51
    for (int i=0;i<num_initial_params;i++)
52 52
    {
53
      (varsptr[i])->set_value(x,ii,pen1);
53
      (varsptr->operator[](i))->set_value(x,ii,pen1);
54 54
      _pen(ii-1)=value(pen1);
55 55
      pen+=pen1; 
56 56
    }

Also available in: Unified diff