src/Bloch/BlochSys.cc
// Input                sys     : Spin system (this)
//                      eidx    : Error index
//			pname	: Additional error message
// Output               none    : Error message output
//                                Program execution stopped
Input                sys     : Spin system (this)
eidx    : Error index
pname   : Additional error message
Output               none    : Error message output
Program execution stopped
Input sys : Spin system ( this ) eidx : Error index pname : Additional error message Output none : Error message output Program execution stopped
void BlochSys::BSerror(int eidx, int noret) const
  {
  std::string hdr("Bloch Spin System");
  std::string msg;
  switch (eidx)
    {
    case  9: msg = std::string("Spin Count Disagrees With System");	
             GAMMAerror(hdr,msg,noret);  break;
    case 10: msg = std::string("Dimensioning Mismatch"); 		
             GAMMAerror(hdr,msg,noret);  break;
    case 11: msg = std::string("Improper Number Of R1 Values"); 	
             GAMMAerror(hdr,msg,noret);  break;
    case 12: msg = std::string("Improper Number Of R2 Values"); 	
             GAMMAerror(hdr,msg,noret);  break;
    case 13: msg = std::string("Improper Number Of Isotope Values");	
             GAMMAerror(hdr,msg,noret);  break;
    case 14: msg = std::string("Improper Number Of Exchange Rates");	
             GAMMAerror(hdr,msg,noret);  break;
    case 15: msg = std::string("Improper Number Of Vector Norms");	
             GAMMAerror(hdr,msg,noret);  break;
    case 16: msg = std::string("Improper Number Of Coordinates");	
             GAMMAerror(hdr,msg,noret);  break;
    case 20: msg = std::string("Negative Relaxation Rate Specified");
             GAMMAerror(hdr,msg,noret);  break;
    case 21: msg = std::string("Negative Exchange Rate Specified");	
             GAMMAerror(hdr,msg,noret);  break;
    case 22: msg = std::string("Negative Vector Norm Specified");	
             GAMMAerror(hdr,msg,noret);  break;
    case 29: msg = std::string("Cannot Set Relaxation Rates");	
             GAMMAerror(hdr,msg,noret);  break;
    case 30: msg = std::string("Cannot Set R1 Relaxation Rates");	
             GAMMAerror(hdr,msg,noret);  break;
    case 31: msg = std::string("Cannot Set R2 Relaxation Rates");	
             GAMMAerror(hdr,msg,noret);  break;
    case 32: msg = std::string("Cannot Set Spin Types");		
             GAMMAerror(hdr,msg,noret);  break;
    case 33: msg = std::string("Cannot Set Exchange Rates");		
             GAMMAerror(hdr,msg,noret);  break;
    case 34: msg = std::string("Cannot Set Vector Norms");		
             GAMMAerror(hdr,msg,noret);  break;
    case 35: msg = std::string("Cant Set Up Magnetiztion Vector(s)");
             GAMMAerror(hdr,msg,noret);  break;
    case 40: msg = std::string("Parameters Insufficient");		
             GAMMAerror(hdr,msg,noret);  break;
    case 50: msg = std::string("Cannot Determine Vector Offset");	
             GAMMAerror(hdr,msg,noret);  break;
    case 51: msg = std::string("Cannot Determine Isotope Type");	
             GAMMAerror(hdr,msg,noret);  break;
    case 52: msg = std::string("Cannot Determine R1 Relax. Rate");	
             GAMMAerror(hdr,msg,noret);  break;
    case 53: msg = std::string("Cannot Determine R2 Relax. Rate");	
             GAMMAerror(hdr,msg,noret);  break;
    case 54: msg = std::string("Cannot Determine Vector Components");
             GAMMAerror(hdr,msg,noret);  break;
    case 55: msg = std::string("Cannot Determine Spin Assignment");	
             GAMMAerror(hdr,msg,noret);  break;
    case 56: msg = std::string("Can't Determine # Of Sub-Vectors");	
             GAMMAerror(hdr,msg,noret);  break;
    default: GAMMAerror(hdr, eidx, noret); break;		
    }
  }
void BlochSys :: BSerror ( int eidx , int noret ) const { std :: string hdr ( " " ) ; std :: string msg ; switch ( eidx ) { case 9 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 10 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 11 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 12 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 13 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 14 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 15 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 16 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 20 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 21 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 22 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 29 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 30 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 31 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 32 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 33 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 34 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 35 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 40 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 50 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 51 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 52 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 53 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 54 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 55 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; case 56 : msg = std :: string ( " " ) ; GAMMAerror ( hdr , msg , noret ) ; break ; default : GAMMAerror ( hdr , eidx , noret ) ; break ; } }
Input                sys     : Spin system (this)
eidx    : Error index
pname   : Additional error message
Output               none    : Error message output
Program execution stopped
Input sys : Spin system ( this ) eidx : Error index pname : Additional error message Output none : Error message output Program execution stopped
// (9) // (10) // (11) // (12) // (13) // (14) // (15) // (16) // (20) // (21) // (22) // (29) // (30) // (31) // (32) // (33) // (34) // (35) // (40) // (50) // (51) // (52) // (53) // (54) // (55) // (56) //(-1)