Revision 1259 trunk/src/nh99/xxmcmc.cpp

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;
265 265
      if ( (on=option_match(ad_comm::argc,ad_comm::argv,"-mcrb",nopt))>-1)
......
299 299
        }
300 300
        else
301 301
        {
302
          int tmp_nvar;
302
          int tmp_nvar = 0;
303 303
          adstring tmpstring = ad_comm::adprogram_name + ".bgs";
304 304
          uistream uis((char*)(tmpstring));
305 305
          if (!uis)
......
500 500
      }
501 501
      */
502 502
      int change_ball=2500;
503
      int nopt;
503
      int nopt = 0;
504 504
      if ( (on=option_match(ad_comm::argc,ad_comm::argv,"-mcscale",nopt))>-1)
505 505
      {
506 506
        if (nopt)
......
572 572
              }
573 573
              else
574 574
              {
575
                int nv1;
575
                int nv1 = 0;
576 576
                uis >> nv1;
577 577
                if (nv1 !=nvar)
578 578
                {
......
1278 1278
  }
1279 1279
  for (i=1;i<=nsim;i++)
1280 1280
  {
1281
    float ftmp;
1281
    float ftmp = 0.0;
1282 1282
    int ii;
1283 1283
    int mmin=mcmc_values.indexmin();
1284 1284
    int mmax=mcmc_values.indexmax();
......
1335 1335
    cerr << "Error trying to open file " << tmpstring
1336 1336
         << "  for reading" << endl;
1337 1337
  }
1338
  int tmp_nvar;
1338
  int tmp_nvar = 0;
1339 1339
  cif >> tmp_nvar;
1340 1340
  if (nvar !=tmp_nvar)
1341 1341
  {
......
1378 1378
    cerr << "Error trying to open file " << tmpstring
1379 1379
         << "  for reading" << endl;
1380 1380
  }
1381
  int tmp_nvar;
1381
  int tmp_nvar = 0;
1382 1382
  cif >> tmp_nvar;
1383 1383
  if (nvar !=tmp_nvar)
1384 1384
  {
......
1476 1476
    cerr << "Error trying to open file " << tmpstring
1477 1477
         << "  for reading" << endl;
1478 1478
  }
1479
  int tmp_nvar;
1479
  int tmp_nvar = 0;
1480 1480
  cif >> tmp_nvar;
1481 1481
  if (nvar !=tmp_nvar)
1482 1482
  {

Also available in: Unified diff