Changeset 125 for trunk/src/read_upf.c


Ignore:
Timestamp:
08/31/11 12:09:03 (21 months ago)
Author:
joseba
Message:

Added the no supported options in the errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_upf.c

    r123 r125  
    6666  narg = sscanf (line, "%2c",&kind_ps[0]); // read the kind of pseudo-potentials US|NC|PAW    "Ultrasoft|Norm conserving|Projector-augmented"  
    6767  PSPIO_ASSERT(narg==1, PSPIO_EIO);      
     68  //LIBPSP_IO can only read norm-conserving pseudo-potentials from UPF format. 
    6869  if (!strncpm(kind_ps,"NC",2)) { 
    69     printf("LIBPSP_IO can only read norm-conserving pseudo-potentials from UPF format."); 
    70     return PSPIO_ETYPE; 
    71   } 
    72          
     70    HANDLE_ERROR(PSPIO_ENOSUPPORT); 
     71  } 
     72   
    7373  if(fgets(line, MAX_STRLEN, fp) == NULL) { 
    7474    HANDLE_ERROR(PSPIO_EIO); 
Note: See TracChangeset for help on using the changeset viewer.