src/Pulses/PulComposite.cc
// ____________________________________________________________________________
// i                     CLASS COMPOSITE PULSE ERROR HANDLING
// ____________________________________________________________________________
i                     CLASS COMPOSITE PULSE ERROR HANDLING
i CLASS COMPOSITE PULSE ERROR HANDLING
void PulComposite::CPulerror(int eidx, int noret) const
  {
  std::cout << "\nClass Composite Pulse: ";
  switch(eidx)
    {
    case 0:								
      std::cout << "Program Aborting....";
      break;
    case 1:								
      std::cout << "Error During Construction";
      break;
    case 2:								
      std::cout << "No Pulse Waveform Defined";
      break;
    case 3:								
      std::cout << "Cannot Generate Step Hamiltonians";
      break;
    case 4:								
      std::cout << "No Pulse Channel Defined";
      break;
    case 10:								
      std::cout << "Waveform Step Hamiltonians NOT Present";
      break;
    case 11:								
      std::cout << "Must Build Step Hamiltonians Before Access Allowed";
      break;
    case 15:								
      std::cout << "Step HS Propagator Build Tried Without Available Hamiltonians";
      break;
    case 16:								
      std::cout << "Build Step Hamiltonians Before Requesting HS Propagators";
      break;
    case 17:								
      std::cout << "HS Step Propagator Access Without Available Hamiltonians";
      break;
    case 18:								
      std::cout << "Summed HS Step Propagator Get Without Available Hamiltonians";
      break;
    case 20:								
      std::cout << "Step LS Propagator Build Tried Without Available Hamiltonians";
      break;
    case 21:								
      std::cout << "Build Step Hamiltonians Before Requesting LS Propagators";
      break;
    case 22:								
      std::cout << "Summed LS Step Propagator Get Without Available Hamiltonians";
      break;
    case 30:								
      std::cout << "System Contains No Isotopes Affected On Chosen Pulse Channel";
      break;
    case 40:								
      std::cout << "Requested Propagator For Non-Existant Waveform Step";
      break;
    case 41:								
      std::cout << "Waveform Steps Span [0, " << WFsteps << ")";
      break;
    case 50:                                                            
      std::cout << "Evolution For Negative Time Requested";
      break;
    case 51:                                                            
      std::cout << "Problems In FID Step Timing!  Report Bug Please!";
      break;
    case 60:                                                            
      std::cout << "Step Synchronized Acquisition With Non-Constant Step Lengths";
      break;
    case 61:                                                            
      std::cout << "Acquistion Step Synchronization Not Possible!";
      break;
    case 62:                                                            
      std::cout << "Full Waveform Synchronization Enabled";
      break;
    case 63:                                                            
      std::cout << "Full Waveform Step Synchronization Enabled";
      break;
    case 65:                                                            
      std::cout << "Fraction Synchronized Acquisition With < 1 Fraction";
      break;
    default:
      std::cout << "Unknown Error (Number " << eidx << ")";
    }
  if(!noret) std::cout << ".\n";
  else       std::cout << ".";
  }
void PulComposite :: CPulerror ( int eidx , int noret ) const { std :: cout << " \n " ; switch ( eidx ) { case 0 : std :: cout << " " ; break ; case 1 : std :: cout << " " ; break ; case 2 : std :: cout << " " ; break ; case 3 : std :: cout << " " ; break ; case 4 : std :: cout << " " ; break ; case 10 : std :: cout << " " ; break ; case 11 : std :: cout << " " ; break ; case 15 : std :: cout << " " ; break ; case 16 : std :: cout << " " ; break ; case 17 : std :: cout << " " ; break ; case 18 : std :: cout << " " ; break ; case 20 : std :: cout << " " ; break ; case 21 : std :: cout << " " ; break ; case 22 : std :: cout << " " ; break ; case 30 : std :: cout << " " ; break ; case 40 : std :: cout << " " ; break ; case 41 : std :: cout << " " << WFsteps << " " ; break ; case 50 : std :: cout << " " ; break ; case 51 : std :: cout << " " ; break ; case 60 : std :: cout << " " ; break ; case 61 : std :: cout << " " ; break ; case 62 : std :: cout << " " ; break ; case 63 : std :: cout << " " ; break ; case 65 : std :: cout << " " ; break ; default : std :: cout << " " << eidx << " " ; } if ( ! noret ) std :: cout << " \n " ; else std :: cout << " " ; }
____________________________________________________________________________
i                     CLASS COMPOSITE PULSE ERROR HANDLING
____________________________________________________________________________
____________________________________________________________________________ i CLASS COMPOSITE PULSE ERROR HANDLING ____________________________________________________________________________
// Input                CPul	: Composite Pulse (this) //                      eidx    : Error flag //                      noret   : Return flag  // Output               none    : Error Message Output // (0) // (1) // (2) // (3) // (4) // (10) // (11) // (15) // (16) // (17) // (18) // (20) // (21) // (22) // (30) // (40) // (41) // (50) // (51) // (60) // (61) // (62) // (63) // (65)