src/Pulses/PulTrain.cc
// ____________________________________________________________________________
// i                     CLASS PULSE TRAIN ERROR HANDLING
// ____________________________________________________________________________
i                     CLASS PULSE TRAIN ERROR HANDLING
i CLASS PULSE TRAIN ERROR HANDLING
void PulTrain::PTerror(int eidx, int noret) const
  {
  std::cout << "\nClass Pulse Train: ";
  switch(eidx)
    {
    case 0:                                                            
      std::cout << "Program Aborting....";
      break;
    case 1:                                                            
      std::cout << "Error During Construction";
      break;
    case 3:                                                            
      std::cout << "Construction From Improper GAMMA Parameter";
      break;
    case 5:                                                            
      std::cout << "Step Propagators Requested Without Step Hamiltonians";
      break;
    case 6:                                                            
      std::cout << "Build Step Hamiltonians Before Requesting Propagators";
      break;
    case 30:								
      std::cout << "Step Hamiltonian Access, Hamiltonian Does Not Exist";
      break;
    case 31:								
      std::cout << "Build Step Hamiltonians Before Their Access";
      break;
    case 32:								
      std::cout << "Step Propagator Access, Propagator Does Not Exist";
      break;
    case 33:								
      std::cout << "Cycle Propagator Access, Propagator Does Not Exist";
      break;
    case 34:								
      std::cout << "Supercycle Propagator Access, Propagator Does Not Exist";
      break;
    case 52:								
      std::cout << "Step Propagator Access, Superop. Propagator Does Not Exist";
      break;
    default:
      std::cout << "Unknown Error (Number " << eidx << ")";
    }
  if(!noret) std::cout << ".\n";
  else       std::cout << ".";
  }
void PulTrain :: PTerror ( int eidx , int noret ) const { std :: cout << " \n " ; switch ( eidx ) { case 0 : std :: cout << " " ; break ; case 1 : std :: cout << " " ; break ; case 3 : std :: cout << " " ; break ; case 5 : std :: cout << " " ; break ; case 6 : std :: cout << " " ; break ; case 30 : std :: cout << " " ; break ; case 31 : std :: cout << " " ; break ; case 32 : std :: cout << " " ; break ; case 33 : std :: cout << " " ; break ; case 34 : std :: cout << " " ; break ; case 52 : std :: cout << " " ; break ; default : std :: cout << " " << eidx << " " ; } if ( ! noret ) std :: cout << " \n " ; else std :: cout << " " ; }
____________________________________________________________________________
i                     CLASS PULSE TRAIN ERROR HANDLING
____________________________________________________________________________
____________________________________________________________________________ i CLASS PULSE TRAIN ERROR HANDLING ____________________________________________________________________________
// Input                PT      : Pulse Train (this) //                      eidx    : Error flag //                      noret   : Return flag  // Output               none    : Error Message Output // (0) // (1) // (3) // (5) // (6) //    case 10:                                                           // (10) //      std::cout << "Unknown Cycle Requested - " << _cname; //      break; //    case 20:                                                           // (20) //      std::cout << "Unknown SuperCycle Requested - " << _scname; //      break; // (30) // (31) // (32) // (33) // (34) // (52)