Revision 1259 trunk/src/nh99/mod_sd.cpp

mod_sd.cpp (revision 1259)
95 95
  dmatrix S(1,nvar,1,nvar);
96 96
  {
97 97
    uistream cif("admodel.cov");
98
    int tmp_nvar;
98
    int tmp_nvar = 0;
99 99
    cif >> tmp_nvar;
100 100
    if (nvar !=tmp_nvar)
101 101
    {
......
111 111
    }
112 112
  }
113 113
  int sgn;
114
  int check=initial_params::stddev_scale(scale,x);
114
  initial_params::stddev_scale(scale,x);
115 115
  double lndet=-ln_det(S,sgn)-2.0*sum(log(scale));
116 116
  initial_params::set_active_random_effects();
117 117
  //int nvar1=initial_params::nvarcalc();
......
144 144
           tmpstring = ad_comm::adprogram_name + ".dep";
145 145
        cifstream cif((char*)tmpstring);
146 146

  
147
        int tmp_nvar,tmp_ndvar;
147
        int tmp_nvar = 0, tmp_ndvar = 0;
148 148
        cif >> tmp_nvar >> tmp_ndvar;
149 149
        if (tmp_nvar!=nvar1)
150 150
        {
......
191 191
           tmpstring = ad_comm::adprogram_name + ".dep";
192 192
        cifstream cif((char*)tmpstring);
193 193

  
194
        int tmp_nvar,tmp_ndvar;
194
        int tmp_nvar = 0, tmp_ndvar = 0;
195 195
        cif >> tmp_nvar >> tmp_ndvar;
196 196
        if (tmp_nvar!=nvar1)
197 197
        {

Also available in: Unified diff