Revision 1258 trunk/src/df1b2-separable/test_trust.cpp

test_trust.cpp (revision 1258)
250 250
      grad.initialize();
251 251
    }
252 252

  
253
    double time1;
253
    double time1 = 0;
254 254
    if (ad_comm::time_flag)
255 255
    {
256 256
      if (ad_comm::ptm)
257 257
      {
258
        /*double time1=*/ad_comm::ptm->get_elapsed_time();
258
        time1=ad_comm::ptm->get_elapsed_time();
259 259
      }
260 260
    }
261 261

  
262 262
    pfmin->user_function();
263 263

  
264

  
265 264
    if (ad_comm::time_flag)
266 265
    {
267 266
      if (ad_comm::ptm)
268 267
      {
269
        double time=ad_comm::ptm->get_elapsed_time();
270 268
        if (ad_comm::global_logfile)
271 269
        {
270
          double time=ad_comm::ptm->get_elapsed_time();
272 271
          (*ad_comm::global_logfile) << "       Time in user_function() " <<  ip << "  "
273 272
            << time-time1 << endl;
274 273
        }

Also available in: Unified diff