src/Level1/coord_vec.cc
/* These functions handle all error messages for class coord_vec.  They tie
   into the generic GAMMA error messaging format.

              Input             cvec    : A coordinate vector
                                eidx    : Error index
                                pname   : string in message
                                noret   : Flag for return (0=linefeed)
           Output               none    : Error message output
                                          Execution stopped (if fatal)       */
These functions handle all error messages for class coord_vec.  They tie
into the generic GAMMA error messaging format.


These functions handle all error messages for class coord_vec . They tie into the generic GAMMA error messaging format .
void coord_vec::CVerror(int eidx, int noret) const
  {
  string hdr("Coordinate Vector");
  string msg;
  switch(eidx)
    {
    case 0: GAMMAerror(hdr, 0, noret); break;   
    case 3: GAMMAerror(hdr, 3, noret); break;   
    case 5: GAMMAerror(hdr, 5, noret); break;   
    case 6: msg = "Error Accessing Coordinate in Coordinate Vector";
            GAMMAerror(hdr, msg, noret); break; 
    case 7: msg = "Cannot Read Coordinates from Parameter File";
            GAMMAerror(hdr, msg, noret); break; 
    case 9: GAMMAerror(hdr, 9, noret); break;   
    case 10: msg = "Negative Number of Points in Coordinate Vector";
             GAMMAerror(hdr, msg, noret); break; 
    case 20: msg = "Set Parameter NCoords To Indicate Total # Coordinates";
             GAMMAerror(hdr, msg, noret); break; 
    case 22: msg = "Problems Writing Coordinate Vector to Output FileStream";
             GAMMAerror(hdr, msg, noret); break; 
    case 23: msg = "Cannot Output Coordinate Vector Parameters";
             GAMMAerror(hdr, msg, noret); break; 
    case 26: msg = "Cannot Determine The Number of Coordinates";
             GAMMAerror(hdr, msg, noret); break; 
    case 27: msg = "Please Set Either NCoords or NSpins Parameter";
             GAMMAerror(hdr, msg, noret); break; 
    case 68: msg = "Coordinate Index Out of Coordinate Vector Range";
             GAMMAerror(hdr, msg, noret); break; 
    default: GAMMAerror(hdr, eidx, noret); break;
    }
  }
void coord_vec :: CVerror ( int eidx , int noret ) const { string hdr ( " " ) ; string msg ; switch ( eidx ) { case 0 : GAMMAerror ( hdr , 0 , noret ) ; break ; case 3 : GAMMAerror ( hdr , 3 , noret ) ; break ; case 5 : GAMMAerror ( hdr , 5 , noret ) ; break ; case 6 : msg = " " ; GAMMAerror ( hdr , msg , noret ) ; break ; case 7 : msg = " " ; GAMMAerror ( hdr , msg , noret ) ; break ; case 9 : GAMMAerror ( hdr , 9 , noret ) ; break ; case 10 : msg = " " ; GAMMAerror ( hdr , msg , noret ) ; break ; case 20 : msg = " " ; GAMMAerror ( hdr , msg , noret ) ; break ; case 22 : msg = " " ; GAMMAerror ( hdr , msg , noret ) ; break ; case 23 : msg = " " ; GAMMAerror ( hdr , msg , noret ) ; break ; case 26 : msg = " " ; GAMMAerror ( hdr , msg , noret ) ; break ; case 27 : msg = " " ; GAMMAerror ( hdr , msg , noret ) ; break ; case 68 : msg = " " ; GAMMAerror ( hdr , msg , noret ) ; break ; default : GAMMAerror ( hdr , eidx , noret ) ; break ; } }
These functions handle all error messages for class coord_vec.
These functions handle all error messages for class coord_vec .
// Program Aborting        (0) // !Construct From Pset    (3) // !Write To Pset          (5) //                         (6) //                         (7) // Construction Problems   (9) //                        (10) //                        (20) //                        (22) //                        (23) //                        (26) //                        (27) //                        (68) // Usually Unknown Error  (-1)