Revision 1259

trunk/src/nh99/mceval.cpp (revision 1259)
33 33
#else
34 34
  int nvar1=initial_params::nvarcalc(); // get the number of active parameters
35 35
#endif
36
  int nvar;
36
  int nvar = 0;
37 37

  
38 38
  pifs_psave= new
39 39
    uistream((char*)(ad_comm::adprogram_name + adstring(".psv")));
trunk/src/nh99/lmnewton.cpp (revision 1259)
40 40
  double _crit=0;
41 41
  int itn=0;
42 42
  int ifn=0;
43
  int nopt;
43
  int nopt = 0;
44 44
  // set the convergence criterion by command line
45 45
  if ( (on=option_match(ad_comm::argc,ad_comm::argv,"-crit",nopt))>-1)
46 46
  {
......
222 222
  double _crit=0;
223 223
  int itn=0;
224 224
  int ifn=0;
225
  int nopt;
225
  int nopt = 0;
226 226
  // set the convergence criterion by command line
227 227
  if ( (on=option_match(ad_comm::argc,ad_comm::argv,"-crit",nopt))>-1)
228 228
  {
trunk/src/nh99/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
        {
trunk/src/nh99/modhdet.cpp (revision 1259)
17 17
  {
18 18
    cerr << "Error opening file admodel.hes" << endl;
19 19
  }
20
  int nvar;
21

  
20
  int nvar = 0;
22 21
  ifs >> nvar;
23 22
  {
24 23
    if (nvar != initial_params::nvarcalc())
trunk/src/nh99/xxmcmc.cpp (revision 1259)
259 259
    dvector sscale(1,nvar);
260 260
    if (!diag_option)
261 261
    {
262
      int on,nopt;
262
      int on,nopt = 0;
263 263
      int rescale_bounded_flag=0;
264 264
      double rescale_bounded_power=0.5;
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff