src/Pulses/PulSupCycle.cc
// ____________________________________________________________________________
// i                   CLASS PULSE SUPERCYCLE ERROR HANDLING
// ____________________________________________________________________________
i                   CLASS PULSE SUPERCYCLE ERROR HANDLING
i CLASS PULSE SUPERCYCLE ERROR HANDLING
void PulSupCycle::SCycerror(int eidx, int noret) const
  {
  cout << "\nClass Pulse Supercycle: ";
  switch(eidx)
    {
    case 0:								
      cout << "Program Aborting....";
      break;
    case 1:								
      cout << "Error During Construction";
      break;
    case 30:								
      cout << "Step Hamiltonian Access, Hamiltonian Does Not Exist";
      break;
    case 31:								
      cout << "Build Step Hamiltonians Before Their Access";
      break;
    case 32:								
      cout << "Step Propagator Access, Propagator Does Not Exist";
      break;
    case 52:								
      cout << "Step Propagator Access, Superop. Propagator Does Not Exist";
      break;
    default:
      cout << "Unknown Error (Number " << eidx << ")";
    }
  if(!noret) cout << ".\n";
  else       cout << ".";
  }
void PulSupCycle :: SCycerror ( int eidx , int noret ) const { cout << " \n " ; switch ( eidx ) { case 0 : cout << " " ; break ; case 1 : cout << " " ; break ; case 30 : cout << " " ; break ; case 31 : cout << " " ; break ; case 32 : cout << " " ; break ; case 52 : cout << " " ; break ; default : cout << " " << eidx << " " ; } if ( ! noret ) cout << " \n " ; else cout << " " ; }
____________________________________________________________________________
i                   CLASS PULSE SUPERCYCLE ERROR HANDLING
____________________________________________________________________________
____________________________________________________________________________ i CLASS PULSE SUPERCYCLE ERROR HANDLING ____________________________________________________________________________
// Input                SCyc	: Pulse Supercycle (this) //                      eidx    : Error flag //                      noret   : Return flag  // Output               none    : Error Message Output // (0) // (1) // (30) // (31) // (32) // (52)