Ignore:
Timestamp:
Jun 18, 2010, 11:42:07 AM (14 years ago)
Author:
garnier
Message:

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/geometry/magneticfield/src/G4MagIntegratorDriver.cc

    r1231 r1315  
    2525//
    2626//
    27 // $Id: G4MagIntegratorDriver.cc,v 1.56 2009/11/12 18:41:03 japost Exp $
    28 // GEANT4 tag $Name: $
     27// $Id: G4MagIntegratorDriver.cc,v 1.53 2009/11/05 22:31:43 japost Exp $
     28// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2929//
    3030//
     
    208208
    209209#ifdef G4DEBUG_FIELD
    210     G4double xSubStepStart= x;
    211210    for (i=0;i<nvar;i++)  { ySubStepStart[i] = y[i]; }
    212211    yFldTrkStart.LoadFromArray(y, fNoIntegrationVariables);
     
    228227      lastStepSucceeded= (hdid == h);   
    229228#ifdef G4DEBUG_FIELD
    230       if (dbg>2) {
    231         PrintStatus( ySubStepStart, xSubStepStart, y, x, h,  nstp); // Only
     229      if (dbg>2)
     230      {
     231        PrintStatus( ySubStepStart, xSubStart, y, x, h,  nstp); // Only
    232232      }
    233233#endif
     
    291291    {
    292292      if( nstp==nStpPr )  { G4cout << "***** Many steps ****" << G4endl; }
    293       G4cout << "MagIntDrv: " ;
    294293      G4cout << "hdid="  << std::setw(12) << hdid  << " "
    295              << "hnext=" << std::setw(12) << hnext << " "
    296              << "hstep=" << std::setw(12) << hstep << " (requested) "
    297              << G4endl;
     294             << "hnext=" << std::setw(12) << hnext << " " << G4endl;
    298295      PrintStatus( ystart, x1, y, x, h, (nstp==nStpPr) ? -nstp: nstp);
    299296    }
     
    372369        lastStep = true;
    373370#ifdef G4DEBUG_FIELD
    374         if (dbg>2)
     371        if (dbg)
    375372        {
    376           int prec= G4cout.precision(12);
    377373          G4cout << "Warning: G4MagIntegratorDriver::AccurateAdvance"
    378374                 << G4endl
    379375                 << "  Integration step 'h' became "
    380                  << h << " due to roundoff. " << G4endl
    381                  << " Calculated as difference of x2= "<< x2 << " and x=" << x
     376                 << h << " due to roundoff " << G4endl
    382377                 << "  Forcing termination of advance." << G4endl;
    383           G4cout.precision(prec);
    384378        }         
    385379#endif
     
    587581                 /  ( sqr(y[9]) + sqr(y[10]) + sqr(y[11]) );
    588582      errspin_sq *= inv_eps_vel_sq;
    589       errmax_sq = std::max( errmax_sq, errspin_sq );
    590    }
     583    }
    591584
    592585    if ( errmax_sq <= 1.0 )  { break; } // Step succeeded.
Note: See TracChangeset for help on using the changeset viewer.