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

df1b2lp1.cpp (revision 1258)
729 729
      grad.initialize();
730 730
    }
731 731

  
732
    double time1;
732
    double time1 = 0;
733 733
    if (ad_comm::time_flag)
734 734
    {
735 735
      if (ad_comm::ptm)
736 736
      {
737
        /*double time1=*/ad_comm::ptm->get_elapsed_time();
737
        time1 = ad_comm::ptm->get_elapsed_time();
738 738
      }
739 739
    }
740

  
741 740
    pfmin->user_function();
742

  
743

  
744 741
    if (ad_comm::time_flag)
745 742
    {
746 743
      if (ad_comm::ptm)
747 744
      {
748
        double time=ad_comm::ptm->get_elapsed_time();
749 745
        if (ad_comm::global_logfile)
750 746
        {
751
          (*ad_comm::global_logfile) << "       Time in user_function() " <<  ip << "  "
752
            << time-time1 << endl;
747
          double time=ad_comm::ptm->get_elapsed_time();
748
          (*ad_comm::global_logfile) << "       Time in user_function() " <<  ip << "  " << time-time1 << endl;
753 749
        }
754 750
      }
755 751
    }

Also available in: Unified diff