src/IntRank2/IntCSAVec.cc
// ____________________________________________________________________________
// i                 CLASS CSA INTERACTION VECTOR ERROR HANDLING
// ____________________________________________________________________________
i                 CLASS CSA INTERACTION VECTOR ERROR HANDLING
i CLASS CSA INTERACTION VECTOR ERROR HANDLING
void IntCSAVec::ICVerror(int eidx, int noret) const
  {
  cout << "\nClass IntCSAVec: ";
  switch(eidx)
    {
    case 0:								
      cout << "Program Aborting.....";
      break;
    case 1:								
      cout << "Cannot Access CSA Interaction Between Spins";
      break;
    case 2:								
      cout << "Error During Vector Construction";
      break;
    case 3:								
      cout << "Cannot Construct Vector From Paramter Set";
      break;
    case 12:								
      cout << "Warning - Setting Asymmetry of a Zero Tensor";
      break;
    case 13:								
      cout << "Attempted CSA Access of Spin with Itself";
      break;
    case 14:								
      cout << "Sorry, CSA Tensor Operation Not Allowed Yet";
      break;
    case 15:								
      cout << "Electron Associated With Shift Anisotropy Interaction Disallowed";
      break;
    case 20:								
      cout << "Can't Write CSA Interaction Vector to Parameter File";
      break;
    case 21:								
      cout << "Can't Read CSA Interaction Vector from Parameter File";
      break;
    case 22:                                                            
      cout << "Problems Writing CSA Interaction Vector to Output FileStream";
      break;
    case 23:                                                            
      cout << "Cannot Output CSA Interaction Vector Parameters";
      break;
    case 24:                                                            
      cout << "Cannot Access Requested CSA Interaction";
      break;
    case 25:                                                            
      cout << "Can't Find Any CSA Interactions Amongst Parameters";
      break;
    default: 
      cout << "Unknown error";
      break;
    }
  if(!noret) cout << ".\n";
  }
void IntCSAVec :: ICVerror ( int eidx , int noret ) const { cout << " \n " ; switch ( eidx ) { case 0 : cout << " " ; break ; case 1 : cout << " " ; break ; case 2 : cout << " " ; break ; case 3 : cout << " " ; break ; case 12 : cout << " " ; break ; case 13 : cout << " " ; break ; case 14 : cout << " " ; break ; case 15 : cout << " " ; break ; case 20 : cout << " " ; break ; case 21 : cout << " " ; break ; case 22 : cout << " " ; break ; case 23 : cout << " " ; break ; case 24 : cout << " " ; break ; case 25 : cout << " " ; break ; default : cout << " " ; break ; } if ( ! noret ) cout << " \n " ; }
____________________________________________________________________________
i                 CLASS CSA INTERACTION VECTOR ERROR HANDLING
____________________________________________________________________________
____________________________________________________________________________ i CLASS CSA INTERACTION VECTOR ERROR HANDLING ____________________________________________________________________________
// Input		ICV	: CSA interaction vector (this) // 			eidx	: Error index //                      noret	: Flag for return (0=linefeed) // Output               none	: Error message // (0) // (1) // (2) // (3) // (12) // (13) // (14) // (15) // (20) // (21) // (22) // (23) // (24) // (25)